mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
more formatting
This commit is contained in:
1 parent
046447b0fb
commit
f552c1212c
157 files changed
+635
-1579
No files matched your search
@@ -6,8 +6,7 @@
|
||||
font-family: 'Bahnschrift Regular';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
src: local('Bahnschrift Regular'),
|
||||
url('../fonts/BAHNSCHRIFT.woff') format('woff');
|
||||
src: local('Bahnschrift Regular'), url('../fonts/BAHNSCHRIFT.woff') format('woff');
|
||||
}
|
||||
|
||||
#account-section,
|
||||
|
||||
@@ -99,15 +99,15 @@ export const BankApp = () => {
|
||||
const classes = useStyles();
|
||||
|
||||
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>
|
||||
</AppContent>
|
||||
<NavigationBar />
|
||||
|
||||
@@ -23,8 +23,8 @@ const useStyles = makeStyles((theme) => ({
|
||||
export const BankTitle = () => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<Paper className={classes.root} square variant='outlined' elevation={24}>
|
||||
<Typography id='bank-title' style={{ margin: 0 }} variant='h4'>
|
||||
<Paper className={classes.root} square variant="outlined" elevation={24}>
|
||||
<Typography id="bank-title" style={{ margin: 0 }} variant="h4">
|
||||
WhoDis Banking
|
||||
</Typography>
|
||||
</Paper>
|
||||
|
||||
@@ -16,7 +16,7 @@ export const AccountTransactions = (): any => {
|
||||
const { transactionList } = useTransactions();
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div id='account-section'>
|
||||
<div id="account-section">
|
||||
<div className={classes.header}>
|
||||
<h2 className={classes.title}>{t('APPS_BANK_ACCOUNT_TRANSACTIONS')}</h2>
|
||||
<Button className={classes.seeAll}>
|
||||
|
||||
@@ -27,7 +27,7 @@ export const BankAccount = () => {
|
||||
</div>
|
||||
<BankCard
|
||||
name={credentials.name}
|
||||
account='Checking'
|
||||
account="Checking"
|
||||
balance={credentials.balance}
|
||||
/>
|
||||
<AccountTransactions />
|
||||
|
||||
@@ -32,13 +32,10 @@ export const BankHome = () => {
|
||||
<p className={classes.accountBalance}>{credentials.balance}</p>
|
||||
</div>
|
||||
<div className={classes.actions}>
|
||||
<Button id='actionButton' className={classes.actionButton}>
|
||||
<NavLink to='/bank/account'>{t('APPS_BANK_ACCOUNT_LINK')}</NavLink>
|
||||
<Button id="actionButton" className={classes.actionButton}>
|
||||
<NavLink to="/bank/account">{t('APPS_BANK_ACCOUNT_LINK')}</NavLink>
|
||||
</Button>
|
||||
<Button
|
||||
onClick={openTransactionsModal}
|
||||
className={classes.actionButton}
|
||||
>
|
||||
<Button onClick={openTransactionsModal} className={classes.actionButton}>
|
||||
{t('APPS_BANK_ACTIONS_TRANSFER')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -4,11 +4,7 @@ import { Link } from 'react-router-dom';
|
||||
import { BottomNavigation, BottomNavigationAction } from '@material-ui/core';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import {
|
||||
faHome,
|
||||
faList,
|
||||
faMoneyCheck,
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import { faHome, faList, faMoneyCheck } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
@@ -37,17 +33,17 @@ export const NavigationBar = () => {
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faHome} />}
|
||||
to='/bank'
|
||||
to="/bank"
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faMoneyCheck} />}
|
||||
to='/bank/account'
|
||||
to="/bank/account"
|
||||
/>
|
||||
<BottomNavigationAction
|
||||
component={Link}
|
||||
icon={<FontAwesomeIcon icon={faList} />}
|
||||
to='/bank/transactions'
|
||||
to="/bank/transactions"
|
||||
/>
|
||||
</BottomNavigation>
|
||||
);
|
||||
|
||||
@@ -27,7 +27,7 @@ export const TransactionList = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div id='transaction-section'>
|
||||
<div id="transaction-section">
|
||||
<div className={classes.header}>
|
||||
<h2 className={classes.title}>{t('APPS_BANK_ACCOUNT_TRANSACTIONS')}</h2>
|
||||
</div>
|
||||
@@ -52,7 +52,7 @@ export const TransactionList = () => {
|
||||
<TablePagination
|
||||
rowsPerPageOptions={[3, 5]}
|
||||
className={classes.pagination}
|
||||
component='div'
|
||||
component="div"
|
||||
count={transactionList.length}
|
||||
rowsPerPage={rowsPerPage}
|
||||
page={page}
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import Modal from '../../../../ui/components/Modal';
|
||||
import {
|
||||
Button,
|
||||
List,
|
||||
ListItem,
|
||||
TextField,
|
||||
makeStyles,
|
||||
} from '@material-ui/core';
|
||||
import { Button, List, ListItem, TextField, makeStyles } from '@material-ui/core';
|
||||
|
||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||
|
||||
@@ -64,8 +58,8 @@ export const TransferModal = () => {
|
||||
<TextField
|
||||
inputProps={{ className: classes.modalInputCenter }}
|
||||
fullWidth
|
||||
type='number'
|
||||
placeholder='ID'
|
||||
type="number"
|
||||
placeholder="ID"
|
||||
value={targetID}
|
||||
onChange={(e) => setTargetID(e.target.value)}
|
||||
/>
|
||||
@@ -73,9 +67,9 @@ export const TransferModal = () => {
|
||||
<ListItem>
|
||||
<TextField
|
||||
inputProps={{ className: classes.modalInputCenter }}
|
||||
placeholder='Amount'
|
||||
placeholder="Amount"
|
||||
fullWidth
|
||||
type='number'
|
||||
type="number"
|
||||
value={amount}
|
||||
onChange={(e) => setAmount(e.target.value)}
|
||||
/>
|
||||
@@ -83,7 +77,7 @@ export const TransferModal = () => {
|
||||
<ListItem>
|
||||
<TextField
|
||||
inputProps={{ className: classes.modalInput }}
|
||||
placeholder='Message'
|
||||
placeholder="Message"
|
||||
fullWidth
|
||||
value={message}
|
||||
multiline
|
||||
|
||||
Reference in new issue
Block a user