Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

Minor improvement.

Danieleadf02193980
diff --git a/components/Layouts/MainLayout.tsx b/components/Layouts/MainLayout.tsx
index 5b28d732..ed4fea26 100644
--- a/components/Layouts/MainLayout.tsx
+++ b/components/Layouts/MainLayout.tsx
@@ -29,9 +29,11 @@ export default function Layout({ children }: LayoutProps) {
</Head>
<div className="flex">
<Sidebar />
- <div className="ml-80">
- <Navbar />
- {children}
+ <div className="ml-80 w-full">
+ <div className="mx-auto w-full">
+ <Navbar />
+ {children}
+ </div>
</div>
</div>
</>
diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index 17e78364..cc7659fa 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -1,3 +1,12 @@
+import { signOut } from "next-auth/react";
+
export default function Navbar() {
- return <div>Navbar</div>;
+ return (
+ <div className="flex justify-between p-5">
+ <p>Navbar</p>
+ <div onClick={() => signOut()} className="cursor-pointer w-max">
+ Sign Out
+ </div>
+ </div>
+ );
}
diff --git a/pages/login.tsx b/pages/login.tsx
index 7b499a76..29a2c4cd 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);
}