mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
cleanup(bank): general cleanup for bank
This commit is contained in:
1 parent
319e5efac5
commit
eb506f0ab0
13 files changed
+282
-385
No files matched your search
@@ -1,45 +1,45 @@
|
||||
import React from "react";
|
||||
import { makeStyles, Paper, Typography } from "@material-ui/core";
|
||||
import { BankTitle } from "./BankTitle";
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { Button } from "../../../ui/components/Button";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useTransactions } from "../hooks/useTransactions";
|
||||
import "./BankApp.css";
|
||||
import { TransferModal } from "./transfers/TransferModal";
|
||||
import React from 'react';
|
||||
import { makeStyles, Paper, Typography } from '@material-ui/core';
|
||||
import { BankTitle } from './BankTitle';
|
||||
import { AppWrapper } from '../../../ui/components';
|
||||
import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { Button } from '../../../ui/components/Button';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useTransactions } from '../hooks/useTransactions';
|
||||
import './BankApp.css';
|
||||
import { TransferModal } from './transfers/TransferModal';
|
||||
|
||||
import { useBankModal } from "../hooks/useBankModal";
|
||||
import { useCredentials } from "../hooks/useCredentials";
|
||||
import { useBankModal } from '../hooks/useBankModal';
|
||||
import { useCredentials } from '../hooks/useCredentials';
|
||||
|
||||
import { Switch, Route } from "react-router-dom";
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
|
||||
// image
|
||||
import CreditCard from '../img/credit-card.png'
|
||||
import { NavigationBar } from "./navigation/NavigationBar";
|
||||
import CreditCard from '../img/credit-card.png';
|
||||
import { NavigationBar } from './navigation/NavigationBar';
|
||||
|
||||
import { BankHome } from './home/BankHome';
|
||||
import { BankHome } from './home/BankHome';
|
||||
import { BankAccount } from './account/BankAccount';
|
||||
import { TransactionList } from "./transactions/TransactionList";
|
||||
import { BankAlert } from "./alert/BankAlert";
|
||||
import { TransactionList } from './transactions/TransactionList';
|
||||
import { BankAlert } from './alert/BankAlert';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
height: "90px",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
backgroundColor: "#fb8c00",
|
||||
alignItems: "center",
|
||||
height: '90px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
backgroundColor: '#fb8c00',
|
||||
alignItems: 'center',
|
||||
},
|
||||
header: {
|
||||
fontFamily: "'Bebas Neue', cursive",
|
||||
textAlign: "center",
|
||||
textAlign: 'center',
|
||||
fontSize: 50,
|
||||
},
|
||||
backgroundModal: {
|
||||
background: "black",
|
||||
opacity: "0.6",
|
||||
position: "absolute",
|
||||
background: 'black',
|
||||
opacity: '0.6',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
@@ -58,15 +58,15 @@ export const BankApp = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<AppWrapper id="bank-app">
|
||||
<AppWrapper id='bank-app'>
|
||||
<BankTitle />
|
||||
<TransferModal />
|
||||
<div className={showBankModal ? classes.backgroundModal : undefined} />
|
||||
<AppContent>
|
||||
<Switch>
|
||||
<Route path="/bank" exact component={BankHome} />
|
||||
<Route path="/bank/account" exact component={BankAccount} />
|
||||
<Route path="/bank/transactions" exact component={TransactionList} />
|
||||
<Route path='/bank' exact component={BankHome} />
|
||||
<Route path='/bank/account' exact component={BankAccount} />
|
||||
<Route path='/bank/transactions' exact component={TransactionList} />
|
||||
</Switch>
|
||||
<BankAlert />
|
||||
</AppContent>
|
||||
|
||||
Reference in new issue
Block a user