mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
added transfers to transactions list
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user