add buttons in sendfunds

This commit is contained in:
mmv 2019-05-23 17:02:17 +04:00
parent e51f5c9572
commit 46e96c7026
2 changed files with 25 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import Paragraph from '~/components/layout/Paragraph'
import Row from '~/components/layout/Row'
import GnoForm from '~/components/forms/GnoForm'
import Col from '~/components/layout/Col'
import Button from '~/components/layout/Button'
import Block from '~/components/layout/Block'
import Hairline from '~/components/layout/Hairline'
import ButtonLink from '~/components/layout/ButtonLink'
@ -41,9 +42,18 @@ type Props = {
}
const SendFunds = ({
classes, onClose, safeAddress, etherScanLink, safeName, ethBalance, tokens, selectedToken,
classes,
onClose,
safeAddress,
etherScanLink,
safeName,
ethBalance,
tokens,
selectedToken,
}: Props) => {
const handleSubmit = () => {}
const handleSubmit = (values) => {
console.log(values)
}
const formMutators = {
setMax: (args, state, utils) => {
const { token } = state.formState.values
@ -140,6 +150,15 @@ const SendFunds = ({
</OnChange>
</Col>
</Row>
<Hairline />
<Row align="center" className={classes.buttonRow}>
<Button className={classes.button} minWidth={140} onClick={onClose}>
Cancel
</Button>
<Button type="submit" className={classes.button} variant="contained" minWidth={140} color="primary">
Review
</Button>
</Row>
</React.Fragment>
)
}}

View File

@ -18,4 +18,8 @@ export const styles = () => ({
formContainer: {
padding: `${md} ${lg}`,
},
buttonRow: {
height: '84px',
justifyContent: 'center',
},
})