feat : In home page "get statement" worked.

feat : After 5 minutes session timeout automatically.
feat: realtime otp feature up
This commit is contained in:
2025-10-09 14:22:39 +05:30
parent 75a4e9199b
commit 8a194a5855
17 changed files with 326 additions and 139 deletions

View File

@@ -49,7 +49,7 @@ export default function AccountStatementPage() {
.then(res => res.json())
.then(data => {
if (Array.isArray(data)) {
const last5 = data.slice(0, 5);
const last5 = data.slice(0, 10);
setTransactions(last5);
// Reuse balance logic
const saved = sessionStorage.getItem("accountData");
@@ -247,7 +247,7 @@ export default function AccountStatementPage() {
{(!startDate && !endDate && transactions.length > 0) && (
<Text fs="italic" c="#228be6" ta="center">
Last 5 Transactions
Last 10 Transactions
</Text>
)}
<ScrollArea style={{ flex: 1 }}>
@@ -290,12 +290,12 @@ export default function AccountStatementPage() {
// ✅ Desktop View Table Layout
<Table style={{ borderCollapse: "collapse", width: "100%" }}>
<thead style={{ backgroundColor: "#3385ff" }}>
<tr>
<th style={{ ...cellStyle, textAlign: "left", color: "white" }}>Name</th>
{/* <tr>
<th style={{ ...cellStyle, textAlign: "left", color: "white" }}>Narration</th>
<th style={{ ...cellStyle, textAlign: "left", color: "white" }}>Date</th>
<th style={{ ...cellStyle, textAlign: "right", color: "white" }}>Amount (₹)</th>
<th style={{ ...cellStyle, textAlign: "right", color: "white" }}>Balance (₹)</th>
</tr>
</tr> */}
</thead>
<tbody>
{transactions.map((txn, i) => (

View File

@@ -32,7 +32,7 @@ export default function AccountSummary() {
const data = await response.json();
if (response.ok && Array.isArray(data)) {
setAccountData(data);
sessionStorage.setItem("accountData", JSON.stringify(data));
// sessionStorage.setItem("accountData", JSON.stringify(data));
}
} catch {
notifications.show({