added transfers to transactions list

This commit is contained in:
chip committed 2020-10-28 18:33:21 +01:00
1 parent e9859777e9
commit a22b224d7d
2 files changed
+4 -2

No files matched your search

@@ -69,6 +69,7 @@ export const AccountTransactions = (): any => {
const TransactionTypes = {
Deposit: classes.depositType,
Withdraw: classes.withdrawType,
Transfer: classes.depositType
};
const { transactionList } = useTransactions();
@@ -91,7 +92,7 @@ export const AccountTransactions = (): any => {
</div>
<div>
<p className={TransactionTypes[transaction.type]}>
{transaction.type == "Deposit" ? "+" : "-"}
{transaction.type == "Withdraw" ? "-" : "+"}
{transaction.amount}
</p>
</div>
@@ -34,6 +34,7 @@ export const TransactionList = () => {
const TransactionTypes = {
Deposit: classes.depositType,
Withdraw: classes.withdrawType,
Transfer: classes.depositType
};
@@ -63,7 +64,7 @@ export const TransactionList = () => {
</div>
<div>
<p className={TransactionTypes[transaction.type]}>
{transaction.type == "Deposit" ? "+" : "-"}
{transaction.type == "Withdraw" ? "-" : "+"}
{transaction.amount}
</p>
</div>