mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
working typescript version
This commit is contained in:
1 parent
581d6011e0
commit
cff746aa38
119 files changed
+247
-189
No files matched your search
@@ -0,0 +1,46 @@
|
||||
import React from "react";
|
||||
import { makeStyles } from "@material-ui/core";
|
||||
import { AppTitle } from "../../../ui/components/AppTitle";
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { Button } from "../../../ui/components/Button";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useBank } from "../hooks/useBank";
|
||||
import { TransactionList } from "./transactionList";
|
||||
import "./BankApp.css";
|
||||
import { useApp } from "../../../os/apps/hooks/useApps";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
height: "90px",
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
backgroundColor: "#fb8c00",
|
||||
alignItems: "center",
|
||||
},
|
||||
header: {
|
||||
fontFamily: "'Bebas Neue', cursive",
|
||||
textAlign: "center",
|
||||
fontSize: 50,
|
||||
},
|
||||
}));
|
||||
|
||||
export const BankApp = () => {
|
||||
const { transactionList } = useBank();
|
||||
const { t } = useTranslation();
|
||||
const classes = useStyles();
|
||||
const bank = useApp("BANK");
|
||||
return (
|
||||
<AppWrapper>
|
||||
<AppTitle app={bank} className={classes.root} />
|
||||
<AppContent>
|
||||
<div>
|
||||
<Button fullWidth>{t("APPS_BANK_DEPOSIT")}</Button>
|
||||
<Button fullWidth>{t("APPS_BANK_WITHDRAW")}</Button>
|
||||
<Button fullWidth>{t("APPS_BANK_TRANSFER")}</Button>
|
||||
</div>
|
||||
<TransactionList transactions={transactionList} />
|
||||
</AppContent>
|
||||
</AppWrapper>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user