From 5c194a24d00676dbfc451e737371762256de763c Mon Sep 17 00:00:00 2001 From: "tomosa.sarkar" Date: Wed, 3 Sep 2025 12:45:00 +0530 Subject: [PATCH] feat : APi integrated foe change password and change trans password feat: Change the UI design --- src/app/(main)/home/page.tsx | 25 ++-------- .../settings/change_login_password/page.tsx | 3 +- .../settings/change_txn_password/page.tsx | 49 ++++++++++--------- src/app/(main)/settings/layout.tsx | 1 + .../(main)/settings/set_txn_password/page.tsx | 5 ++ src/app/(main)/settings/user_id/page.tsx | 18 +++++++ 6 files changed, 53 insertions(+), 48 deletions(-) create mode 100644 src/app/(main)/settings/user_id/page.tsx diff --git a/src/app/(main)/home/page.tsx b/src/app/(main)/home/page.tsx index 8ce0118..06072d8 100644 --- a/src/app/(main)/home/page.tsx +++ b/src/app/(main)/home/page.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react'; import { Button, Input, Group, Stack, Text, Title, Box, Select, Paper, Switch } from '@mantine/core'; -import { IconBuildingBank, IconEye } from '@tabler/icons-react'; +import { IconBuildingBank, IconEye, IconLink } from '@tabler/icons-react'; import { useRouter } from "next/navigation"; import { Providers } from "../../providers"; import { notifications } from '@mantine/notifications'; @@ -192,7 +192,7 @@ export default function Home() { {/* Important Links Card */} - Quick Links + Quick Links @@ -202,30 +202,11 @@ export default function Home() { - - {/* Send Money Section */}
- {/* - Send Money - - - - - - */} ** Book Balance includes uncleared effect. ** Click on the "Show Balance"to display balance for the Deposit and Loan account. - {/* ** Click on the "Get Statement" to display last 5 transactions. */} + ** Your Password will expire in 85 days.
diff --git a/src/app/(main)/settings/change_login_password/page.tsx b/src/app/(main)/settings/change_login_password/page.tsx index 607f1b2..8e000a7 100644 --- a/src/app/(main)/settings/change_login_password/page.tsx +++ b/src/app/(main)/settings/change_login_password/page.tsx @@ -177,7 +177,6 @@ export default function ChangePassword() { return ( - More Updates comming soon ..... Change Login Password @@ -286,7 +285,7 @@ export default function ChangePassword() { - Note: Your new password must be 8–15 characters long and contain at least one number and one special character. + Note: Your new Login password must be 8–15 characters long and contain at least one number and one special character. ); diff --git a/src/app/(main)/settings/change_txn_password/page.tsx b/src/app/(main)/settings/change_txn_password/page.tsx index 3ba3932..b59d7d5 100644 --- a/src/app/(main)/settings/change_txn_password/page.tsx +++ b/src/app/(main)/settings/change_txn_password/page.tsx @@ -1,7 +1,7 @@ "use client"; import React, { useEffect, useState } from "react"; -import { TextInput, PasswordInput, Button, Title, Paper, Group, Box } from "@mantine/core"; +import { TextInput, PasswordInput, Button, Title, Paper, Group, Box, Text } from "@mantine/core"; import { notifications } from "@mantine/notifications"; import { IconLock } from "@tabler/icons-react"; import { generateCaptcha } from "@/app/captcha"; @@ -183,16 +183,17 @@ export default function ChangePassword() { {/* Scrollable form area */} -
- setOldPassword(e.currentTarget.value)} - withAsterisk - mb="xs" - /> +
+ setOldPassword(e.currentTarget.value)} + withAsterisk + mb="xs" + /> + - {/* CAPTCHA */} -
- {/* Buttons */} - - - - + + Note: Your new Transaction password must be 8–15 characters long and contain at least one number and one special character. + + ); } diff --git a/src/app/(main)/settings/layout.tsx b/src/app/(main)/settings/layout.tsx index 2cf0bfa..bc1b7bb 100644 --- a/src/app/(main)/settings/layout.tsx +++ b/src/app/(main)/settings/layout.tsx @@ -15,6 +15,7 @@ export default function Layout({ children }: { children: React.ReactNode }) { { label: "Change Login Password", href: "/settings/change_login_password" }, { label: "Change transaction Password", href: "/settings/change_txn_password" }, { label: "Set transaction Password", href: "/settings/set_txn_password" }, + { label: "Set userId", href: "/settings/user_id" }, ]; useEffect(() => { const token = localStorage.getItem("access_token"); diff --git a/src/app/(main)/settings/set_txn_password/page.tsx b/src/app/(main)/settings/set_txn_password/page.tsx index 991aef5..82d87af 100644 --- a/src/app/(main)/settings/set_txn_password/page.tsx +++ b/src/app/(main)/settings/set_txn_password/page.tsx @@ -8,6 +8,7 @@ import { Title, Paper, Group, + Text } from "@mantine/core"; import { notifications } from "@mantine/notifications"; import { IconLock } from "@tabler/icons-react"; @@ -294,6 +295,10 @@ export default function ChangePassword() { Reset + + + Note: Your new Transaction password must be 8–15 characters long and contain at least one number and one special character. + ); } diff --git a/src/app/(main)/settings/user_id/page.tsx b/src/app/(main)/settings/user_id/page.tsx new file mode 100644 index 0000000..df8f301 --- /dev/null +++ b/src/app/(main)/settings/user_id/page.tsx @@ -0,0 +1,18 @@ +"use client"; + +import React, { useEffect, useState } from "react"; +import { Group, Loader, Paper, Text } from "@mantine/core"; + + +export default function ChangePassword() { + return ( + + + + The feature will be available soon... + + + + + ); +}