feat : make general changes for download account statement.

This commit is contained in:
2025-09-10 11:38:50 +05:30
parent 14e6ef97bc
commit 3a006bf3c1
9 changed files with 156 additions and 153 deletions

View File

@@ -120,18 +120,18 @@ export default function ForgetLoginPwd() {
}
}
useEffect(() => {
const token = localStorage.getItem("access_token");
if (!token) {
SetAuthorized(false);
router.push("/login");
}
else {
SetAuthorized(true);
}
}, []);
// useEffect(() => {
// const token = localStorage.getItem("access_token");
// if (!token) {
// SetAuthorized(false);
// router.push("/login");
// }
// else {
// SetAuthorized(true);
// }
// }, []);
if (authorized) {
// if (authorized) {
return (
<Providers>
<div style={{ backgroundColor: "#f8f9fa", width: "100%", height: "auto", paddingTop: "5%" }}>
@@ -265,5 +265,5 @@ export default function ForgetLoginPwd() {
</div>
</Providers >
);
}
// }
}