mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
fix(bank/nui): fixed warnings
This commit is contained in:
1 parent
310d58d3d1
commit
ee283c8b1c
5 files changed
+7
-20
No files matched your search
@@ -1,23 +1,17 @@
|
||||
import React from 'react';
|
||||
import { makeStyles, Paper, Typography } from '@material-ui/core';
|
||||
import { makeStyles } 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 { Switch, Route } from 'react-router-dom';
|
||||
|
||||
// image
|
||||
import CreditCard from '../img/credit-card.png';
|
||||
import { NavigationBar } from './navigation/NavigationBar';
|
||||
|
||||
|
||||
import { BankHome } from './home/BankHome';
|
||||
import { BankAccount } from './account/BankAccount';
|
||||
import { TransactionList } from './transactions/TransactionList';
|
||||
@@ -49,14 +43,9 @@ const useStyles = makeStyles((theme) => ({
|
||||
}));
|
||||
|
||||
export const BankApp = () => {
|
||||
const { showBankModal, setShowBankModal } = useBankModal();
|
||||
const { t } = useTranslation();
|
||||
const { showBankModal } = useBankModal();
|
||||
const classes = useStyles();
|
||||
|
||||
const openTransactionsModal = () => {
|
||||
setShowBankModal(true);
|
||||
};
|
||||
|
||||
return (
|
||||
<AppWrapper id='bank-app'>
|
||||
<BankTitle />
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import Paper from '@material-ui/core/Paper';
|
||||
import { Typography, makeStyles } from '@material-ui/core';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
|
||||
import './BankApp.css';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { makeStyles, Paper, Typography, Button } from '@material-ui/core';
|
||||
import { Button } from '@material-ui/core';
|
||||
import { useTransactions } from '../../hooks/useTransactions';
|
||||
import useStyles from './account.styles';
|
||||
|
||||
@@ -33,7 +33,7 @@ export const AccountTransactions = (): any => {
|
||||
</div>
|
||||
<div>
|
||||
<p className={TransactionTypes[transaction.type]}>
|
||||
{transaction.type == 'Withdraw' ? '-' : '+'}
|
||||
{transaction.type === 'Withdraw' ? '-' : '+'}
|
||||
{transaction.amount}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import React from 'react';
|
||||
import { Button } from '../../../../ui/components/Button';
|
||||
import { makeStyles, Paper, Typography } from '@material-ui/core';
|
||||
import { makeStyles } from '@material-ui/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { BankCard } from './BankCard';
|
||||
import { AccountTransactions } from './AccountTransactions';
|
||||
|
||||
@@ -43,7 +43,7 @@ export const TransactionList = () => {
|
||||
</div>
|
||||
<div>
|
||||
<p className={TransactionTypes[transaction.type]}>
|
||||
{transaction.type == 'Withdraw' ? '-' : '+'}
|
||||
{transaction.type === 'Withdraw' ? '-' : '+'}
|
||||
{transaction.amount}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user