feat : make general changes for download account statement.
This commit is contained in:
@@ -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 >
|
||||
);
|
||||
}
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user