Desc:
- Perubahan tampilan
This commit is contained in:
2023-10-03 17:46:15 +08:00
parent a82019552f
commit b505e5813e
13 changed files with 321 additions and 14 deletions

View File

@@ -7,11 +7,14 @@ import { useAtom } from "jotai";
import { gs_nomor, gs_otp } from "../state/state";
import { IconLogout } from "@tabler/icons-react";
import { Warna } from "@/app/lib/warna";
import { gs_token } from "@/app_modules/home/state/global_state";
export default function Logout() {
const router = useRouter();
const [nomor, setnomor] = useAtom(gs_nomor);
const [code, setCode] = useAtom(gs_otp);
const [token, setToken] = useAtom(gs_token);
const onLogout = async () => {
// MyConsole("keluar");
@@ -22,6 +25,7 @@ export default function Logout() {
if (val.status == 200) {
setnomor(null);
setCode(null);
setToken(null)
return router.push("/dev/auth/login");
}