fix: success message
This commit is contained in:
parent
b80b729388
commit
2c211aadd8
2 changed files with 38 additions and 9 deletions
|
|
@ -15,6 +15,7 @@ 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 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 CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg'
|
import { ReactComponent as CompleteStageIconZodiac } from 'src/styling/icons/stage/zodiac/complete.svg'
|
||||||
import { ReactComponent as CurrentStageIconZodiac } from 'src/styling/icons/stage/zodiac/current.svg'
|
import { ReactComponent as CurrentStageIconZodiac } from 'src/styling/icons/stage/zodiac/current.svg'
|
||||||
import { ReactComponent as EmptyStageIconZodiac } from 'src/styling/icons/stage/zodiac/empty.svg'
|
import { ReactComponent as EmptyStageIconZodiac } from 'src/styling/icons/stage/zodiac/empty.svg'
|
||||||
|
|
@ -73,7 +74,7 @@ const QrCodeComponent = ({ classes, qrCode, name, count, onPaired }) => {
|
||||||
<QRCode size={240} fgColor={primaryColor} value={qrCode} />
|
<QRCode size={240} fgColor={primaryColor} value={qrCode} />
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.qrTextWrapper}>
|
<div className={classes.qrTextWrapper}>
|
||||||
<div className={classes.qrCodeWrapper}>
|
<div className={classes.qrTextInfoWrapper}>
|
||||||
<div className={classes.qrTextIcon}>
|
<div className={classes.qrTextIcon}>
|
||||||
<WarningIcon />
|
<WarningIcon />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -84,15 +85,20 @@ const QrCodeComponent = ({ classes, qrCode, name, count, onPaired }) => {
|
||||||
through the button above and scan it with the scanning bay on
|
through the button above and scan it with the scanning bay on
|
||||||
your machine.
|
your machine.
|
||||||
</P>
|
</P>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{hasNewMachine && (
|
{hasNewMachine && (
|
||||||
<P className={classes.qrText}>
|
<div className={classes.successMessageWrapper}>
|
||||||
✔ Machine has been successfully paired!
|
<div className={classes.successMessageIcon}>
|
||||||
</P>
|
<CompleteStageIconSpring />
|
||||||
|
</div>
|
||||||
|
<Info2 className={classes.successMessage}>
|
||||||
|
Machine has been successfully paired!
|
||||||
|
</Info2>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@ import {
|
||||||
placeholderColor,
|
placeholderColor,
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
primaryColor,
|
primaryColor,
|
||||||
mainWidth
|
mainWidth,
|
||||||
|
spring2,
|
||||||
|
spring3
|
||||||
} from 'src/styling/variables'
|
} from 'src/styling/variables'
|
||||||
|
|
||||||
const { tl2, p } = typographyStyles
|
const { tl2, p } = typographyStyles
|
||||||
|
|
@ -55,12 +57,15 @@ const styles = {
|
||||||
qrCodeWrapper: {
|
qrCodeWrapper: {
|
||||||
display: 'flex'
|
display: 'flex'
|
||||||
},
|
},
|
||||||
|
qrTextInfoWrapper: {
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'row'
|
||||||
|
},
|
||||||
qrTextWrapper: {
|
qrTextWrapper: {
|
||||||
width: 381,
|
width: 381,
|
||||||
marginLeft: 80,
|
marginLeft: 80,
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column'
|
||||||
alignItems: 'center'
|
|
||||||
},
|
},
|
||||||
textWrapper: {
|
textWrapper: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
@ -99,6 +104,24 @@ const styles = {
|
||||||
},
|
},
|
||||||
stepperPast: {
|
stepperPast: {
|
||||||
border: [[1, 'solid', primaryColor]]
|
border: [[1, 'solid', primaryColor]]
|
||||||
|
},
|
||||||
|
successMessageWrapper: {
|
||||||
|
backgroundColor: spring3,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'row',
|
||||||
|
padding: '0px 10px',
|
||||||
|
borderRadius: '8px'
|
||||||
|
},
|
||||||
|
successMessage: {
|
||||||
|
color: spring2,
|
||||||
|
margin: '8px 0px'
|
||||||
|
},
|
||||||
|
successMessageIcon: {
|
||||||
|
marginRight: 16,
|
||||||
|
marginBottom: 2,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'col',
|
||||||
|
alignItems: 'center'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue