diff --git a/components/Layouts/MainLayout.tsx b/components/Layouts/MainLayout.tsx index 5b28d73..ed4fea2 100644 --- a/components/Layouts/MainLayout.tsx +++ b/components/Layouts/MainLayout.tsx @@ -29,9 +29,11 @@ export default function Layout({ children }: LayoutProps) {
-
- - {children} +
+
+ + {children} +
diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 17e7836..cc7659f 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,3 +1,12 @@ +import { signOut } from "next-auth/react"; + export default function Navbar() { - return
Navbar
; + return ( +
+

Navbar

+
signOut()} className="cursor-pointer w-max"> + Sign Out +
+
+ ); } diff --git a/pages/login.tsx b/pages/login.tsx index 7b499a7..29a2c4c 100644 --- a/pages/login.tsx +++ b/pages/login.tsx @@ -19,7 +19,6 @@ export default function Login() { const res = await signIn("credentials", { email: form.email, password: form.password, - redirect: false, }); if (res?.ok) { @@ -27,8 +26,6 @@ export default function Login() { email: "", password: "", }); - - // router.push("/"); } else { console.log("User not found or password does not match.", res); }