mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
feat(bank/nui): new layout for account summary | showing balance | displaying trancactions
This commit is contained in:
1 parent
ffbcc5fde0
commit
155d3b611a
3 files changed
+185
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import React from 'react'
|
||||
import { Button } from "../../../../ui/components/Button";
|
||||
import { makeStyles, Paper, Typography } from "@material-ui/core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { BankCard } from './BankCard';
|
||||
import { AccountTransactions } from './AccountTransactions';
|
||||
import { useCredentials } from '../../hooks/useCredentials';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
width: '100%',
|
||||
fontFamily: 'Bahnschrift Regular'
|
||||
},
|
||||
title: {
|
||||
fontSize: '30px',
|
||||
marginLeft: '29px'
|
||||
}
|
||||
}))
|
||||
|
||||
export const BankAccount = () => {
|
||||
const classes = useStyles();
|
||||
const { credentials } = useCredentials();
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<div className={classes.root}>
|
||||
<div>
|
||||
<h1 className={classes.title} >{t("APPS_BANK_ACCOUNT_TITLE")}</h1>
|
||||
</div>
|
||||
<BankCard name={credentials.name} account="Checking" balance={credentials.balance} />
|
||||
<AccountTransactions />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user