Skip to content

Commit

Permalink
update: update camera scanner layout style
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenQian committed Sep 3, 2024
1 parent 23d2609 commit 92dad87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/components/CameraScannerLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const CameraScannerLayout = () => {
bottom={0}
justifyContent="center"
alignItems="center"
opacity={0.5}
backgroundColor="primaryBackground"
>
<Box
position="relative"
Expand Down
14 changes: 6 additions & 8 deletions src/components/DaynamicQrScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,18 @@ const DaynamicQrScanner = ({ onBarCodeScanned, progress }: Props) => {
/>
<CameraScannerLayout />

{progress > 0 && (
<Box position="relative" bottom="30%" width="70%" alignSelf="center">
<ProgressBar progress={progress} />
</Box>
)}
<Box position="absolute" bottom="20%" width="70%" alignSelf="center">
<ProgressBar progress={progress} />
</Box>

<Box
position="relative"
bottom="30%"
position="absolute"
bottom="10%"
alignSelf="center"
paddingHorizontal="s"
>
<Text variant="subtitle3" marginTop="xxxl" textAlign="center">
{t('keystone.payment.scanTxQrcodeScreenSubtitle3666')}
{t('keystone.payment.scanTxQrcodeScreenSubtitle3')}
</Text>
</Box>
</BackScreen>
Expand Down

0 comments on commit 92dad87

Please sign in to comment.