Fix style of buttons

This commit is contained in:
Germán Martínez 2019-08-26 11:54:52 +02:00
parent 0d02c05ee3
commit fb95d6a6ff
8 changed files with 15 additions and 19 deletions

View File

@ -48,9 +48,6 @@ const styles = () => ({
height: '84px',
justifyContent: 'center',
},
button: {
height: '42px',
},
addressContainer: {
marginTop: '28px',
},
@ -109,7 +106,7 @@ const Receive = ({
</Col>
<Hairline />
<Row align="center" className={classes.buttonRow}>
<Button color="primary" className={classes.button} minWidth={140} onClick={onClose} variant="contained">
<Button color="primary" minHeight={42} minWidth={140} onClick={onClose} variant="contained">
Done
</Button>
</Row>

View File

@ -138,12 +138,11 @@ const ReviewTx = ({
</Block>
<Hairline style={{ position: 'absolute', bottom: 85 }} />
<Row align="center" className={classes.buttonRow}>
<Button className={classes.button} minWidth={140} minHeight={42} onClick={onClickBack}>
<Button minWidth={140} minHeight={42} onClick={onClickBack}>
Back
</Button>
<Button
type="submit"
className={classes.button}
onClick={submitTx}
variant="contained"
minWidth={140}

View File

@ -156,7 +156,7 @@ const SendFunds = ({
</Row>
<Hairline />
<Row align="center" className={classes.buttonRow}>
<Button className={classes.button} minWidth={140} minHeight={42} onClick={onClose}>
<Button minWidth={140} minHeight={42} onClick={onClose}>
Cancel
</Button>
<Button

View File

@ -189,10 +189,10 @@ const AddCustomToken = (props: Props) => {
</Block>
<Hairline />
<Row align="center" className={classes.buttonRow}>
<Button className={classes.button} minWidth={140} onClick={goBackToTokenList}>
<Button minHeight={42} minWidth={140} onClick={goBackToTokenList}>
Cancel
</Button>
<Button type="submit" className={classes.button} variant="contained" minWidth={140} color="primary">
<Button type="submit" variant="contained" minWidth={140} minHeight={42} color="primary">
Save
</Button>
</Row>

View File

@ -28,7 +28,4 @@ export const styles = () => ({
height: '84px',
justifyContent: 'center',
},
button: {
height: '42px',
},
})

View File

@ -1,5 +1,5 @@
// @flow
import { sm, xs } from '~/theme/variables'
import { sm } from '~/theme/variables'
export const styles = (theme: Object) => ({
root: {
@ -32,13 +32,15 @@ export const styles = (theme: Object) => ({
},
receive: {
width: '95px',
minWidth: '95px',
},
send: {
width: '70px',
width: '75px',
minWidth: '75px',
marginLeft: sm,
},
leftIcon: {
marginRight: xs,
marginRight: sm,
},
links: {
textDecoration: 'underline',

View File

@ -65,12 +65,11 @@ const CancelTxModal = ({
</Row>
</Block>
<Row align="center" className={classes.buttonRow}>
<Button className={classes.button} minWidth={140} minHeight={42} onClick={onClose}>
<Button minWidth={140} minHeight={42} onClick={onClose}>
Exit
</Button>
<Button
type="submit"
className={classes.button}
variant="contained"
minWidth={214}
minHeight={42}

View File

@ -43,12 +43,14 @@ export const styles = () => ({
},
receive: {
width: '95px',
minWidth: '95px',
},
send: {
width: '70px',
width: '75px',
minWidth: '75px',
marginLeft: sm,
},
leftIcon: {
marginRight: xs,
marginRight: sm,
},
})