From ebad82fd5c86d969d0c3f30bc963ae4320973d45 Mon Sep 17 00:00:00 2001 From: "alexey.lunin@vereign.com" <alexey.lunin@vereign.com> Date: Tue, 5 Mar 2024 16:45:17 +0200 Subject: [PATCH] bug fixes --- src/screens/EmailDetails/Attachments.tsx | 6 +++++- src/screens/EmailDetails/index.tsx | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/screens/EmailDetails/Attachments.tsx b/src/screens/EmailDetails/Attachments.tsx index a3f887c..19f3648 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 9a2fc93..53787bd 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> -- GitLab