mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +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 = {
|
const TransactionTypes = {
|
||||||
Deposit: classes.depositType,
|
Deposit: classes.depositType,
|
||||||
Withdraw: classes.withdrawType,
|
Withdraw: classes.withdrawType,
|
||||||
|
Transfer: classes.depositType
|
||||||
};
|
};
|
||||||
|
|
||||||
const { transactionList } = useTransactions();
|
const { transactionList } = useTransactions();
|
||||||
@@ -91,7 +92,7 @@ export const AccountTransactions = (): any => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className={TransactionTypes[transaction.type]}>
|
<p className={TransactionTypes[transaction.type]}>
|
||||||
{transaction.type == "Deposit" ? "+" : "-"}
|
{transaction.type == "Withdraw" ? "-" : "+"}
|
||||||
{transaction.amount}
|
{transaction.amount}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ export const TransactionList = () => {
|
|||||||
const TransactionTypes = {
|
const TransactionTypes = {
|
||||||
Deposit: classes.depositType,
|
Deposit: classes.depositType,
|
||||||
Withdraw: classes.withdrawType,
|
Withdraw: classes.withdrawType,
|
||||||
|
Transfer: classes.depositType
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -63,7 +64,7 @@ export const TransactionList = () => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className={TransactionTypes[transaction.type]}>
|
<p className={TransactionTypes[transaction.type]}>
|
||||||
{transaction.type == "Deposit" ? "+" : "-"}
|
{transaction.type == "Withdraw" ? "-" : "+"}
|
||||||
{transaction.amount}
|
{transaction.amount}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user