From daae61d5fed3640cf48e78be467eddcc00a0647b Mon Sep 17 00:00:00 2001 From: Srija Date: Mon, 18 May 2026 16:31:57 +0530 Subject: [PATCH] Fixed the sidebar navigation issue. --- src/components/BankHouse.css | 6 +- src/components/BankHouse.jsx | 266 ++++++++++++++------ src/components/bank-house/TransferVault.jsx | 13 +- 3 files changed, 206 insertions(+), 79 deletions(-) diff --git a/src/components/BankHouse.css b/src/components/BankHouse.css index 4fbf3fd..826726c 100644 --- a/src/components/BankHouse.css +++ b/src/components/BankHouse.css @@ -4,7 +4,8 @@ width: 100%; background-color: #050b14; color: #e2e8f0; - overflow: hidden; + overflow-x: hidden; + overflow-y: auto; font-family: inherit; } @@ -214,6 +215,8 @@ display: flex; flex-direction: column; justify-content: space-between; + position: relative; + z-index: 20; } .bank-side-nav { @@ -279,6 +282,7 @@ gap: 1.5rem; overflow-y: auto; padding-right: 0.5rem; + min-height: 0; } .bank-main-content::-webkit-scrollbar { diff --git a/src/components/BankHouse.jsx b/src/components/BankHouse.jsx index dfe89b5..8ae2d3c 100644 --- a/src/components/BankHouse.jsx +++ b/src/components/BankHouse.jsx @@ -119,93 +119,209 @@ export default function BankHouse({ onBack }) { -
-
-
-

Total Balance

-
₮ {glitchText}
- +12.5% this month -
-
-

Savings Vault

-
₮ {savings.toLocaleString('en-US', {minimumFractionDigits: 2})}
- Locked -
-
-

Current Account

-
₮ {balance.toLocaleString('en-US', {minimumFractionDigits: 2})}
- Pending holds -
-
-

Monthly Spend

-
₮ {monthlySpend.toLocaleString('en-US', {minimumFractionDigits: 2})}
- +8.2% vs last month -
-
+
+

+ Active Tab: {activeTab} +

-
-
- - -
+ {activeTab === 'dashboard' && ( + <> +
+
+

Total Balance

+ +
+ ₮ {glitchText} +
+ + + +12.5% this month + +
+ +
+

Savings Vault

+ +
+ ₮{' '} + {savings.toLocaleString('en-US', { + minimumFractionDigits: 2 + })} +
+ + Locked +
+ +
+

Current Account

+ +
+ ₮{' '} + {balance.toLocaleString('en-US', { + minimumFractionDigits: 2 + })} +
+ + + Pending holds + +
+ +
+

Monthly Spend

+ +
+ ₮{' '} + {monthlySpend.toLocaleString('en-US', { + minimumFractionDigits: 2 + })} +
+ + + +8.2% vs last month + +
+
+ +
+
+ + + +
+ +
+
+

Security Alerts

-
-
-

Security Alerts

-
-
- -
- Unauthorized Access Attempt - Terminal 4A - 2 mins ago +
+
+ + +
+ + Unauthorized Access Attempt + + + + Terminal 4A - 2 mins ago + +
+
+ +
+ + +
+ + Large Transfer Pending + + + + ₮ 89,000.00 awaiting clearance + +
+
-
- -
- Large Transfer Pending - ₮ 89,000.00 awaiting clearance + +
+

Spending Overview

+ +
+
+ {dailySpending.map((day, idx) => ( +
+ ))} +
+ +
+ {dailySpending.map((day, idx) => ( + + {day.label} + + ))} +
+ + + setSelectedBen(ben?.id || '') + } + />
+ + )} -
-

Spending Overview

-
-
- {dailySpending && dailySpending.map((day, idx) => ( -
- ))} -
-
- {dailySpending && dailySpending.map((day, idx) => ( - {day.label} - ))} -
-
-
- - setSelectedBen(ben?.id || '')} - /> + {activeTab === 'accounts' && ( +
+

Accounts

+

Accounts section coming soon...

-
+ )} + + {activeTab === 'transfer' && ( + + )} + + {activeTab === 'beneficiaries' && ( + + setSelectedBen(ben?.id || '') + } + /> + )} + + {activeTab === 'statements' && ( +
+

Statements

+

Statement archive loading...

+
+ )} + + {activeTab === 'fraud' && ( +
+

Fraud Monitor

+

No critical threats detected.

+
+ )} + + {activeTab === 'support' && ( +
+

Support

+

Support systems online.

+
+ )}
) -} +} \ No newline at end of file diff --git a/src/components/bank-house/TransferVault.jsx b/src/components/bank-house/TransferVault.jsx index ce166ab..e6931f1 100644 --- a/src/components/bank-house/TransferVault.jsx +++ b/src/components/bank-house/TransferVault.jsx @@ -36,7 +36,7 @@ export default function TransferVault({ balance, beneficiaries, onTransfer, sele {toast && (
setAmount(e.target.value)} /> -
-