fix: add qrcode whitespace
This commit is contained in:
parent
9553bf8fc9
commit
5eb342a640
2 changed files with 30 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import { Button } from 'src/components/buttons'
|
||||||
import { TextInput } from 'src/components/inputs/formik'
|
import { TextInput } from 'src/components/inputs/formik'
|
||||||
import Sidebar from 'src/components/layout/Sidebar'
|
import Sidebar from 'src/components/layout/Sidebar'
|
||||||
import { Info2, P } from 'src/components/typography'
|
import { Info2, P } from 'src/components/typography'
|
||||||
|
import { ReactComponent as CameraIcon } from 'src/styling/icons/ID/photo/zodiac.svg'
|
||||||
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
|
import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg'
|
||||||
import { ReactComponent as CompleteStageIconSpring } from 'src/styling/icons/stage/spring/complete.svg'
|
import { ReactComponent as CompleteStageIconSpring } from 'src/styling/icons/stage/spring/complete.svg'
|
||||||
import { ReactComponent as CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg'
|
import { ReactComponent as CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg'
|
||||||
|
|
@ -70,8 +71,18 @@ const QrCodeComponent = ({ classes, qrCode, name, count, onPaired }) => {
|
||||||
Scan QR code with your new cryptomat
|
Scan QR code with your new cryptomat
|
||||||
</Info2>
|
</Info2>
|
||||||
<div className={classes.qrCodeWrapper}>
|
<div className={classes.qrCodeWrapper}>
|
||||||
<div>
|
<div className={classes.qrCodeImageWrapper}>
|
||||||
<QRCode size={240} fgColor={primaryColor} value={qrCode} />
|
<QRCode
|
||||||
|
size={280}
|
||||||
|
fgColor={primaryColor}
|
||||||
|
includeMargin
|
||||||
|
value={qrCode}
|
||||||
|
className={classes.qrCodeBorder}
|
||||||
|
/>
|
||||||
|
<div className={classes.qrCodeScanMessage}>
|
||||||
|
<CameraIcon />
|
||||||
|
<P noMargin>Snap a picture and scan</P>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.qrTextWrapper}>
|
<div className={classes.qrTextWrapper}>
|
||||||
<div className={classes.qrTextInfoWrapper}>
|
<div className={classes.qrTextInfoWrapper}>
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,23 @@ const styles = {
|
||||||
},
|
},
|
||||||
errorMessage: {
|
errorMessage: {
|
||||||
color: errorColor
|
color: errorColor
|
||||||
|
},
|
||||||
|
qrCodeImageWrapper: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
backgroundColor: 'white',
|
||||||
|
border: `5px solid ${primaryColor}`,
|
||||||
|
padding: 5,
|
||||||
|
borderRadius: 15
|
||||||
|
},
|
||||||
|
qrCodeScanMessage: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
alignItems: 'center',
|
||||||
|
margin: [[0, 0, 20, 20]],
|
||||||
|
'& > p': {
|
||||||
|
marginLeft: 10
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue