From ffbcc5fde079671943858e7a2ae04e39f32a1bc2 Mon Sep 17 00:00:00 2001 From: chip Date: Mon, 26 Oct 2020 15:34:47 +0100 Subject: [PATCH] tweak(bank/nui): new directory for home screen --- .../apps/bank/components/home/BankHome.tsx | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 phone/src/apps/bank/components/home/BankHome.tsx diff --git a/phone/src/apps/bank/components/home/BankHome.tsx b/phone/src/apps/bank/components/home/BankHome.tsx new file mode 100644 index 0000000..c7b0ad6 --- /dev/null +++ b/phone/src/apps/bank/components/home/BankHome.tsx @@ -0,0 +1,38 @@ +import React from "react"; +import { makeStyles, Paper, Typography } from "@material-ui/core"; +import { BankTitle } from "../BankTitle"; +import { Button } from "../../../../ui/components/Button"; +import { useTranslation } from "react-i18next"; +import { useTransactions } from "../../hooks/useTransactions"; +import { TransactionList } from "../transactions/TransactionList"; +import { TransferModal } from "../transfers/TransferModal"; + +import { useBankModal } from "../../hooks/useBankModal"; +import { useCredentials } from "../../hooks/useCredentials"; + +// image +import CreditCard from '../img/credit-card.png' + +const useStyles = makeStyles((theme) => ({ + root: { + width: "100%" + } +})); + +export const BankHome = () => { + const { showBankModal, setShowBankModal } = useBankModal(); + const { credentials } = useCredentials(); + const { transactionList } = useTransactions(); + const { t } = useTranslation(); + const classes = useStyles(); + + const openTransactionsModal = () => { + setShowBankModal(true); + }; + + return ( +
+ +
+ ); +}; \ No newline at end of file