Skip to content

Commit

Permalink
fix: adjust safeareaview and remove unneeded styles (#1056)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com>
  • Loading branch information
bryce-mcmath committed Jan 3, 2024
1 parent 79c1e53 commit 1317246
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 201 deletions.
23 changes: 9 additions & 14 deletions packages/legacy/core/App/screens/ProofRequesting.tsx
Expand Up @@ -118,9 +118,6 @@ const ProofRequesting: React.FC<ProofRequestingProps> = ({ route, navigation })
marginTop: 'auto',
marginHorizontal: 20,
},
footerButton: {
marginBottom: 10,
},
})

const createProofRequest = useCallback(async () => {
Expand Down Expand Up @@ -192,7 +189,7 @@ const ProofRequesting: React.FC<ProofRequestingProps> = ({ route, navigation })
}, [proofRecord])

return (
<SafeAreaView style={styles.container} edges={['left', 'right']}>
<SafeAreaView style={styles.container} edges={['left', 'right', 'bottom']}>
<ScrollView>
<View style={styles.qrContainer}>
{generating && <LoadingIndicator />}
Expand All @@ -204,16 +201,14 @@ const ProofRequesting: React.FC<ProofRequestingProps> = ({ route, navigation })
</View>
</ScrollView>
<View style={styles.buttonContainer}>
<View style={styles.footerButton}>
<Button
title={t('Verifier.RefreshQR')}
accessibilityLabel={t('Verifier.RefreshQR')}
testID={testIdWithKey('GenerateNewQR')}
buttonType={ButtonType.Primary}
onPress={() => createProofRequest()}
disabled={generating}
/>
</View>
<Button
title={t('Verifier.RefreshQR')}
accessibilityLabel={t('Verifier.RefreshQR')}
testID={testIdWithKey('GenerateNewQR')}
buttonType={ButtonType.Primary}
onPress={() => createProofRequest()}
disabled={generating}
/>
</View>
</SafeAreaView>
)
Expand Down

0 comments on commit 1317246

Please sign in to comment.