Use default height for small buttons

This commit is contained in:
Germán Martínez 2019-09-12 17:21:22 +02:00
parent 1af8ffad4c
commit 1429f837c9
5 changed files with 6 additions and 10 deletions

View File

@ -109,7 +109,7 @@ const Receive = ({
</Col> </Col>
<Hairline /> <Hairline />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button color="primary" minHeight={35} minWidth={140} onClick={onClose} variant="contained"> <Button color="primary" minWidth={140} onClick={onClose} variant="contained">
Done Done
</Button> </Button>
</Row> </Row>

View File

@ -127,7 +127,7 @@ const ReviewCustomTx = ({
</Row> </Row>
<Row margin="md" align="center"> <Row margin="md" align="center">
<Col className={classes.outerData}> <Col className={classes.outerData}>
<Row size="md" noMargin className={classes.data}> <Row size="md" className={classes.data}>
{tx.data} {tx.data}
</Row> </Row>
</Col> </Col>
@ -135,7 +135,7 @@ const ReviewCustomTx = ({
</Block> </Block>
<Hairline /> <Hairline />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button minWidth={140} minHeight={35} onClick={() => setActiveScreen('sendCustomTx')}> <Button minWidth={140} onClick={() => setActiveScreen('sendCustomTx')}>
Back Back
</Button> </Button>
<Button <Button
@ -143,7 +143,6 @@ const ReviewCustomTx = ({
onClick={submitTx} onClick={submitTx}
variant="contained" variant="contained"
minWidth={140} minWidth={140}
minHeight={35}
color="primary" color="primary"
data-testid="submit-tx-btn" data-testid="submit-tx-btn"
className={classes.submitButton} className={classes.submitButton}

View File

@ -138,7 +138,7 @@ const ReviewTx = ({
</Block> </Block>
<Hairline style={{ position: 'absolute', bottom: 85 }} /> <Hairline style={{ position: 'absolute', bottom: 85 }} />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button minWidth={140} minHeight={35} onClick={() => setActiveScreen('sendFunds')}> <Button minWidth={140} onClick={() => setActiveScreen('sendFunds')}>
Back Back
</Button> </Button>
<Button <Button
@ -146,7 +146,6 @@ const ReviewTx = ({
onClick={submitTx} onClick={submitTx}
variant="contained" variant="contained"
minWidth={140} minWidth={140}
minHeight={35}
color="primary" color="primary"
data-testid="submit-tx-btn" data-testid="submit-tx-btn"
className={classes.submitButton} className={classes.submitButton}

View File

@ -149,13 +149,12 @@ const SendCustomTx = ({
</Block> </Block>
<Hairline /> <Hairline />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button minWidth={140} minHeight={35} onClick={onClose}> <Button minWidth={140} onClick={onClose}>
Cancel Cancel
</Button> </Button>
<Button <Button
type="submit" type="submit"
variant="contained" variant="contained"
minHeight={35}
minWidth={140} minWidth={140}
color="primary" color="primary"
data-testid="review-tx-btn" data-testid="review-tx-btn"

View File

@ -161,13 +161,12 @@ const SendFunds = ({
</Block> </Block>
<Hairline /> <Hairline />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button minWidth={140} minHeight={35} onClick={onClose}> <Button minWidth={140} onClick={onClose}>
Cancel Cancel
</Button> </Button>
<Button <Button
type="submit" type="submit"
variant="contained" variant="contained"
minHeight={35}
minWidth={140} minWidth={140}
color="primary" color="primary"
data-testid="review-tx-btn" data-testid="review-tx-btn"