diff --git a/src/screens/EmailDetails/Attachments.tsx b/src/screens/EmailDetails/Attachments.tsx index a3f887c6ef6ab16f8b80258e6c32408d2b13de12..19f3648370d3872182f5f6a5639d35bc7127d225 100644 --- a/src/screens/EmailDetails/Attachments.tsx +++ b/src/screens/EmailDetails/Attachments.tsx @@ -21,7 +21,7 @@ const Attachments = ({ attachments }: Props) => { <Text style={styles.title}>{t<string>("Seal.Steps.Attachments")}</Text> {attachments.map((attachmentName, i) => ( <View key={i} style={styles.attachment}> - <Text>{attachmentName}</Text> + <Text style={styles.attachmentText}>{attachmentName}</Text> </View> ))} </Card> @@ -40,4 +40,8 @@ const styles = StyleSheet.create({ alignItems: 'center', justifyContent: 'center', }, + attachmentText: { + ...TextTheme.normal, + color: ColorPallet.baseColors.black, + }, }); diff --git a/src/screens/EmailDetails/index.tsx b/src/screens/EmailDetails/index.tsx index 9a2fc93e793c2be56d66888ac0f2092572ddc4ae..53787bd939b90b95f6e718c77136f889515e6ee6 100644 --- a/src/screens/EmailDetails/index.tsx +++ b/src/screens/EmailDetails/index.tsx @@ -129,7 +129,8 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { bcc={email.bcc} /> <ContentCard html={html} plainText={plainText} /> - {(!isTrustedSender || trusting)&& ( + <Attachments attachments={attachments} /> + {configValid && (!isTrustedSender || trusting) && ( <Button buttonStyle={styles.emailButton} buttonType={ButtonType.Primary} @@ -139,7 +140,7 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { onPress={handleTrustSender} /> )} - {isTrustedSender && !trusting && ( + {configValid && isTrustedSender && !trusting && ( <Button buttonStyle={styles.emailButton} buttonType={ButtonType.Primary} @@ -155,7 +156,6 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { }} /> )} - <Attachments attachments={attachments}/> </View> </ScrollView> </View>