Skip to content
Snippets Groups Projects
Commit ebad82fd authored by Alexey Lunin's avatar Alexey Lunin
Browse files

bug fixes

parent 594765e9
No related branches found
No related tags found
1 merge request!24hin demo features
...@@ -21,7 +21,7 @@ const Attachments = ({ attachments }: Props) => { ...@@ -21,7 +21,7 @@ const Attachments = ({ attachments }: Props) => {
<Text style={styles.title}>{t<string>("Seal.Steps.Attachments")}</Text> <Text style={styles.title}>{t<string>("Seal.Steps.Attachments")}</Text>
{attachments.map((attachmentName, i) => ( {attachments.map((attachmentName, i) => (
<View key={i} style={styles.attachment}> <View key={i} style={styles.attachment}>
<Text>{attachmentName}</Text> <Text style={styles.attachmentText}>{attachmentName}</Text>
</View> </View>
))} ))}
</Card> </Card>
...@@ -40,4 +40,8 @@ const styles = StyleSheet.create({ ...@@ -40,4 +40,8 @@ const styles = StyleSheet.create({
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
}, },
attachmentText: {
...TextTheme.normal,
color: ColorPallet.baseColors.black,
},
}); });
...@@ -129,7 +129,8 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { ...@@ -129,7 +129,8 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => {
bcc={email.bcc} bcc={email.bcc}
/> />
<ContentCard html={html} plainText={plainText} /> <ContentCard html={html} plainText={plainText} />
{(!isTrustedSender || trusting)&& ( <Attachments attachments={attachments} />
{configValid && (!isTrustedSender || trusting) && (
<Button <Button
buttonStyle={styles.emailButton} buttonStyle={styles.emailButton}
buttonType={ButtonType.Primary} buttonType={ButtonType.Primary}
...@@ -139,7 +140,7 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { ...@@ -139,7 +140,7 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => {
onPress={handleTrustSender} onPress={handleTrustSender}
/> />
)} )}
{isTrustedSender && !trusting && ( {configValid && isTrustedSender && !trusting && (
<Button <Button
buttonStyle={styles.emailButton} buttonStyle={styles.emailButton}
buttonType={ButtonType.Primary} buttonType={ButtonType.Primary}
...@@ -155,7 +156,6 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => { ...@@ -155,7 +156,6 @@ const EmailDetails: React.FC<EmailDetailsProps> = observer(({ route }) => {
}} }}
/> />
)} )}
<Attachments attachments={attachments}/>
</View> </View>
</ScrollView> </ScrollView>
</View> </View>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment