feat : In home page "get statement" worked.
feat : After 5 minutes session timeout automatically. feat: realtime otp feature up
This commit is contained in:
@@ -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) => (
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user