diff --git a/phone/src/apps/bank/components/transfers/TransferModal.tsx b/phone/src/apps/bank/components/transfers/TransferModal.tsx index 97aee59..fe4050b 100644 --- a/phone/src/apps/bank/components/transfers/TransferModal.tsx +++ b/phone/src/apps/bank/components/transfers/TransferModal.tsx @@ -1,13 +1,44 @@ import React, { useState } from 'react' import Modal from '../../../../ui/components/Modal'; -import { Button, List, ListItem, TextField } from '@material-ui/core'; +import { Button, List, ListItem, TextField, makeStyles } from '@material-ui/core'; +import CloseIcon from '@material-ui/icons/Close'; import Nui from '../../../../os/nui-events/utils/Nui'; import { useBankModal} from '../../hooks/useBankModal'; +const useStyles = makeStyles((theme) => ({ + input: { + width: "60%", + margin: 'auto', + + }, + modalInput: { + fontSize: 20 + }, + modalInputCenter: { + fontSize: 20, + textAlign: 'center', + }, + transferButton: { + background: "#2E7D32", + width: 120, + padding: 5, + margin: "auto", + fontSize: 16, + marginBottom: 30 + }, + closeButton: { + position: 'absolute', + right: 0, + width: "10%" + } +})) + export const TransferModal = () => { + const classes = useStyles(); + const [ targetID, setTargetID ] = useState(''); const [ amount, setAmount ] = useState(''); const [ message, setMessage ] = useState(''); @@ -24,14 +55,21 @@ export const TransferModal = () => { amount, message }) + setTimeout(() => { + setShowBankModal(false) + }, 200) + } return ( - - + + - setTargetID(e.target.value)} @@ -39,20 +77,26 @@ export const TransferModal = () => { setAmount(e.target.value)} /> - setMessage(e.target.value)} /> - + ) }