fix: misaligned button

chore: remove unneeded styles
This commit is contained in:
Nikola Ubavic 2022-03-09 15:02:14 +01:00
parent e01e5f9b89
commit 3cf8e9beed
2 changed files with 32 additions and 46 deletions

View file

@ -75,7 +75,7 @@ const WizardStep = ({
}}
enableReinitialize
validationSchema={schema}>
<Form>
<Form className={classes.column}>
<div className={classes.header}>
{steps.map(
({ type, display, component }, idx) =>
@ -122,31 +122,31 @@ const WizardStep = ({
)}
{isLastStep && (
<div className={classes.disclaimer}>
<Info2 className={classes.title}>Cash Cassette Bill Count</Info2>
<P>
<WarningIcon className={classes.disclaimerIcon} />
When enabling cash-out, your bill count will be automatically set to
zero. Make sure you physically put cash inside the cash cassettes to
allow the machine to dispense it to your users. If you already did,
make sure you set the correct cash cassette bill count for this
machine on your Cash Boxes & Cassettes tab under Maintenance.
</P>
<Info2 className={classes.title}>Default Commissions</Info2>
<P>
<WarningIcon className={classes.disclaimerIcon} />
When enabling cash-out, default commissions will be set. To change
commissions for this machine, please go to the Commissions tab under
Settings where you can set exceptions for each of the available
cryptocurrencies.
</P>
<div className={classes.column}>
<div>
{error && <ErrorMessage>Failed to save</ErrorMessage>}
<Button className={classes.submit} onClick={() => onContinue()}>
{label}
</Button>
<Info2 className={classes.title}>Cash Cassette Bill Count</Info2>
<P>
<WarningIcon className={classes.disclaimerIcon} />
When enabling cash-out, your bill count will be automatically set
to zero. Make sure you physically put cash inside the cash
cassettes to allow the machine to dispense it to your users. If
you already did, make sure you set the correct cash cassette bill
count for this machine on your Cash Boxes & Cassettes tab under
Maintenance.
</P>
<Info2 className={classes.title}>Default Commissions</Info2>
<P>
<WarningIcon className={classes.disclaimerIcon} />
When enabling cash-out, default commissions will be set. To change
commissions for this machine, please go to the Commissions tab
under Settings where you can set exceptions for each of the
available cryptocurrencies.
</P>
</div>
{error && <ErrorMessage>Failed to save</ErrorMessage>}
<Button className={classes.submit} onClick={() => onContinue()}>
{label}
</Button>
</div>
)}
</>

View file

@ -30,22 +30,21 @@ export default {
suffix: {
paddingLeft: spacer * 2
},
button: {
marginLeft: 'auto'
},
submit: {
float: 'right'
alignSelf: 'flex-end'
},
picker: {
width: LABEL_WIDTH
},
header: {
display: 'flex',
marginBottom: 95
display: 'flex'
},
thirdStepHeader: {
column: {
display: 'flex',
paddingBottom: 188
flexGrow: 2,
flexDirection: 'column',
paddingBottom: 32,
justifyContent: 'space-between'
},
step: {
flex: 1
@ -55,21 +54,8 @@ export default {
top: -20,
right: 14
},
content: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
flex: 1,
paddingBottom: 32
},
disclaimer: {
display: 'flex',
flex: 1,
flexDirection: 'column',
justifyContent: 'space-between'
},
disclaimerIcon: {
float: 'left',
margin: [[-4, 16, 48, 0]]
margin: [[2, 16, 48, 0]]
}
}