diff --git a/phone/src/apps/bank/components/transfers/TransferModal.tsx b/phone/src/apps/bank/components/transfers/TransferModal.tsx new file mode 100644 index 0000000..97aee59 --- /dev/null +++ b/phone/src/apps/bank/components/transfers/TransferModal.tsx @@ -0,0 +1,58 @@ +import React, { useState } from 'react' +import Modal from '../../../../ui/components/Modal'; +import { Button, List, ListItem, TextField } from '@material-ui/core'; + +import Nui from '../../../../os/nui-events/utils/Nui'; + +import { useBankModal} from '../../hooks/useBankModal'; + + +export const TransferModal = () => { + const [ targetID, setTargetID ] = useState(''); + const [ amount, setAmount ] = useState(''); + const [ message, setMessage ] = useState(''); + + const { showBankModal, setShowBankModal } = useBankModal(); + + const _handleClose = () => { + setShowBankModal(false) + } + + const addTransfer = () => { + Nui.send('phone:addTransfer', { + targetID, + amount, + message + }) + } + + return ( + + + + + setTargetID(e.target.value)} + /> + + + setAmount(e.target.value)} + /> + + + setMessage(e.target.value)} + /> + + + + + ) +}