diff --git a/src/app/dev/home/page.tsx b/src/app/dev/home/page.tsx
index ab5679e5..ce7a8440 100644
--- a/src/app/dev/home/page.tsx
+++ b/src/app/dev/home/page.tsx
@@ -14,7 +14,7 @@ export default async function Page() {
// })
// );
- if (!c?.value) return redirect("/dev/auth/login");
+ // if (!c?.value) return redirect("/dev/auth/login");
return (
<>
diff --git a/src/app_modules/auth/logout/view.tsx b/src/app_modules/auth/logout/view.tsx
index 1c6e3630..a9c5fd12 100644
--- a/src/app_modules/auth/logout/view.tsx
+++ b/src/app_modules/auth/logout/view.tsx
@@ -1,10 +1,12 @@
"use client";
import { myConsole } from "@/app/fun/my_console";
import { ApiHipmi } from "@/app/lib/api";
-import { Button } from "@mantine/core";
+import { ActionIcon, Button } from "@mantine/core";
import { useRouter } from "next/navigation";
import { useAtom } from "jotai";
import { gs_nomor, gs_otp } from "../state/state";
+import { IconLogout } from "@tabler/icons-react";
+import { Warna } from "@/app/lib/warna";
export default function Logout() {
const router = useRouter();
@@ -28,9 +30,9 @@ export default function Logout() {
return (
<>
-
+
+ onLogout()}/>
+
>
);
}
diff --git a/src/app_modules/home/layout.tsx b/src/app_modules/home/layout.tsx
index fa4a674d..dc479717 100644
--- a/src/app_modules/home/layout.tsx
+++ b/src/app_modules/home/layout.tsx
@@ -2,6 +2,7 @@
import { ActionIcon, AppShell, Flex, Group, Header, Text } from "@mantine/core";
import { HomeView } from ".";
import { IconUserSearch, IconAward, IconQrcode } from "@tabler/icons-react";
+import { Logout } from "../auth";
export default function HomeLayout({ children }: { children: any }) {
return (
@@ -10,20 +11,23 @@ export default function HomeLayout({ children }: { children: any }) {
header={
-
-
-
-
- HIPMI
-
-
+
+
+
+
+
+
+ HIPMI
+
+
-
+
+
}
diff --git a/src/app_modules/home/view.tsx b/src/app_modules/home/view.tsx
index cb6bbc51..f19bd1ff 100644
--- a/src/app_modules/home/view.tsx
+++ b/src/app_modules/home/view.tsx
@@ -95,7 +95,7 @@ export default function HomeView() {
- Welcome to, {token?.username}
+ Welcome to, {token?.username ? token?.username : "SERVER ERROR"}