fix loading hapus forum

This commit is contained in:
2025-05-21 15:45:01 +08:00
parent 693554ac55
commit e8c897242e
9 changed files with 53 additions and 136 deletions

View File

@@ -21,11 +21,11 @@ export default function InvalidUser() {
method: "GET",
});
router.push("/login", {scroll: false});
} catch (error) {
console.error("Gagal menghapus cookie:", error);
} finally {
setIsLoading(false);
}
} catch (error) {
setIsLoading(false);
console.error("Gagal menghapus cookie:", error);
}
};
return (
@@ -33,8 +33,7 @@ export default function InvalidUser() {
<UIGlobal_LayoutDefault>
<Stack align="center" justify="center" spacing="md" h={"100vh"}>
<Title order={2} c={MainColor.white}>
{" "}
Invalid User
Maaf, Anda tidak memiliki izin untuk mengakses halaman ini. Silakan logout terlebih dahulu.
</Title>
<Button
loading={isLoading}
@@ -44,7 +43,7 @@ export default function InvalidUser() {
deleteCookie();
}}
>
Logout
Keluar
</Button>
</Stack>
</UIGlobal_LayoutDefault>