mirror of
https://github.com/status-im/safe-react.git
synced 2025-02-05 06:14:22 +00:00
add buttons in sendfunds
This commit is contained in:
parent
e51f5c9572
commit
46e96c7026
@ -10,6 +10,7 @@ import Paragraph from '~/components/layout/Paragraph'
|
|||||||
import Row from '~/components/layout/Row'
|
import Row from '~/components/layout/Row'
|
||||||
import GnoForm from '~/components/forms/GnoForm'
|
import GnoForm from '~/components/forms/GnoForm'
|
||||||
import Col from '~/components/layout/Col'
|
import Col from '~/components/layout/Col'
|
||||||
|
import Button from '~/components/layout/Button'
|
||||||
import Block from '~/components/layout/Block'
|
import Block from '~/components/layout/Block'
|
||||||
import Hairline from '~/components/layout/Hairline'
|
import Hairline from '~/components/layout/Hairline'
|
||||||
import ButtonLink from '~/components/layout/ButtonLink'
|
import ButtonLink from '~/components/layout/ButtonLink'
|
||||||
@ -41,9 +42,18 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const SendFunds = ({
|
const SendFunds = ({
|
||||||
classes, onClose, safeAddress, etherScanLink, safeName, ethBalance, tokens, selectedToken,
|
classes,
|
||||||
|
onClose,
|
||||||
|
safeAddress,
|
||||||
|
etherScanLink,
|
||||||
|
safeName,
|
||||||
|
ethBalance,
|
||||||
|
tokens,
|
||||||
|
selectedToken,
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const handleSubmit = () => {}
|
const handleSubmit = (values) => {
|
||||||
|
console.log(values)
|
||||||
|
}
|
||||||
const formMutators = {
|
const formMutators = {
|
||||||
setMax: (args, state, utils) => {
|
setMax: (args, state, utils) => {
|
||||||
const { token } = state.formState.values
|
const { token } = state.formState.values
|
||||||
@ -140,6 +150,15 @@ const SendFunds = ({
|
|||||||
</OnChange>
|
</OnChange>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</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>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
@ -18,4 +18,8 @@ export const styles = () => ({
|
|||||||
formContainer: {
|
formContainer: {
|
||||||
padding: `${md} ${lg}`,
|
padding: `${md} ${lg}`,
|
||||||
},
|
},
|
||||||
|
buttonRow: {
|
||||||
|
height: '84px',
|
||||||
|
justifyContent: 'center',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user