fix: no need for child selectors
fix: eslint
This commit is contained in:
parent
42f19e9d02
commit
c4acfaa609
3 changed files with 39 additions and 40 deletions
|
|
@ -11,7 +11,7 @@ const styles = {
|
||||||
maxHeight: 80,
|
maxHeight: 80,
|
||||||
maxWidth: 200
|
maxWidth: 200
|
||||||
},
|
},
|
||||||
title: {
|
subtitle: {
|
||||||
margin: 0,
|
margin: 0,
|
||||||
marginBottom: 42,
|
marginBottom: 42,
|
||||||
textAlign: 'center'
|
textAlign: 'center'
|
||||||
|
|
@ -27,23 +27,23 @@ const styles = {
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
padding: [[0, 34, 107, 34]],
|
padding: [[0, 34, 107, 34]]
|
||||||
'& > div': {
|
},
|
||||||
paddingBottom: 72,
|
innerContent: {
|
||||||
'& > h1': {
|
paddingBottom: 72
|
||||||
|
},
|
||||||
|
title: {
|
||||||
color: neon,
|
color: neon,
|
||||||
marginBottom: 12,
|
marginBottom: 12,
|
||||||
marginTop: 30,
|
marginTop: 30,
|
||||||
textAlign: 'center',
|
textAlign: 'center'
|
||||||
'& > svg': {
|
},
|
||||||
|
titleDecorator: {
|
||||||
verticalAlign: 'bottom',
|
verticalAlign: 'bottom',
|
||||||
marginRight: spacer * 1.5,
|
marginRight: spacer * 1.5,
|
||||||
width: spacer * 3,
|
width: spacer * 3,
|
||||||
height: spacer * 3.25
|
height: spacer * 3.25
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const useStyles = makeStyles(styles)
|
const useStyles = makeStyles(styles)
|
||||||
|
|
@ -53,12 +53,12 @@ const WizardSplash = ({ name, onContinue }) => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classes.modalContent}>
|
<div className={classes.modalContent}>
|
||||||
<div>
|
<div className={classes.innerContent}>
|
||||||
<H1>
|
<H1 className={classes.title}>
|
||||||
<TxOutIcon />
|
<TxOutIcon className={classes.titleDecorator} />
|
||||||
<span>Enable cash-out</span>
|
<span>Enable cash-out</span>
|
||||||
</H1>
|
</H1>
|
||||||
<Info2 className={classes.title}>{name}</Info2>
|
<Info2 className={classes.subtitle}>{name}</Info2>
|
||||||
<P>
|
<P>
|
||||||
You are about to activate cash-out functionality on your {name}{' '}
|
You are about to activate cash-out functionality on your {name}{' '}
|
||||||
machine which will allow your customers to sell crypto to you.
|
machine which will allow your customers to sell crypto to you.
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ const WizardStep = ({
|
||||||
{steps.map(
|
{steps.map(
|
||||||
({ type, display, component }, idx) =>
|
({ type, display, component }, idx) =>
|
||||||
1 + idx === step && (
|
1 + idx === step && (
|
||||||
<div key={idx}>
|
<div key={idx} className={classes.step}>
|
||||||
<H4 className={classes.edit}>Edit {display}</H4>
|
<H4 className={classes.edit}>Edit {display}</H4>
|
||||||
|
|
||||||
<Label1>Choose bill denomination</Label1>
|
<Label1>Choose bill denomination</Label1>
|
||||||
|
|
@ -78,6 +78,7 @@ const WizardStep = ({
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
<img
|
<img
|
||||||
|
className={classes.stepImage}
|
||||||
alt="cassette"
|
alt="cassette"
|
||||||
width="148"
|
width="148"
|
||||||
height="196"
|
height="196"
|
||||||
|
|
@ -95,7 +96,7 @@ const WizardStep = ({
|
||||||
<div className={classes.disclaimer}>
|
<div className={classes.disclaimer}>
|
||||||
<Info2 className={classes.title}>Cashout Bill Count</Info2>
|
<Info2 className={classes.title}>Cashout Bill Count</Info2>
|
||||||
<P>
|
<P>
|
||||||
<WarningIcon />
|
<WarningIcon className={classes.disclaimerIcon} />
|
||||||
When enabling cash out, your bill count will be automatically set to
|
When enabling cash out, your bill count will be automatically set to
|
||||||
zero. Make sure you physically put cash inside the cashboxes to
|
zero. Make sure you physically put cash inside the cashboxes to
|
||||||
allow the machine to dispense it to your users. If you already did,
|
allow the machine to dispense it to your users. If you already did,
|
||||||
|
|
@ -105,7 +106,7 @@ const WizardStep = ({
|
||||||
|
|
||||||
<Info2 className={classes.title}>Default Commissions</Info2>
|
<Info2 className={classes.title}>Default Commissions</Info2>
|
||||||
<P>
|
<P>
|
||||||
<WarningIcon />
|
<WarningIcon className={classes.disclaimerIcon} />
|
||||||
When enabling cash out, default commissions will be set. To change
|
When enabling cash out, default commissions will be set. To change
|
||||||
commissions for this machine, please go to the Commissions tab under
|
commissions for this machine, please go to the Commissions tab under
|
||||||
Settings where you can set exceptions for each of the available
|
Settings where you can set exceptions for each of the available
|
||||||
|
|
|
||||||
|
|
@ -38,15 +38,15 @@ export default {
|
||||||
},
|
},
|
||||||
header: {
|
header: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
paddingBottom: 96,
|
paddingBottom: 96
|
||||||
'& div': {
|
},
|
||||||
|
step: {
|
||||||
flex: 1
|
flex: 1
|
||||||
},
|
},
|
||||||
'& img': {
|
stepImage: {
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
top: -20,
|
top: -20,
|
||||||
right: 14
|
right: 14
|
||||||
}
|
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
@ -59,12 +59,10 @@ export default {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between'
|
||||||
'& > p': {
|
},
|
||||||
'& > svg': {
|
disclaimerIcon: {
|
||||||
float: 'left',
|
float: 'left',
|
||||||
margin: [[-4, 16, 48, 0]]
|
margin: [[-4, 16, 48, 0]]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue