aboutsummaryrefslogtreecommitdiffstats
path: root/web/components/auth
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-08 15:14:23 +0000
committerMohamedBassem <me@mbassem.com>2024-02-08 15:15:21 +0000
commit80bb8a108f29331cdb2f2695f6801beee104dc89 (patch)
treeb1ae2a512963a9c916c4bfed71f7633f508de131 /web/components/auth
parent333429adbaaa592cc96b480a5228f0e3f1de4cc2 (diff)
downloadkarakeep-80bb8a108f29331cdb2f2695f6801beee104dc89.tar.zst
[refactor] Move the different packages to the package subdir
Diffstat (limited to 'web/components/auth')
-rw-r--r--web/components/auth/login.tsx17
-rw-r--r--web/components/auth/logout.tsx17
2 files changed, 0 insertions, 34 deletions
diff --git a/web/components/auth/login.tsx b/web/components/auth/login.tsx
deleted file mode 100644
index 4cd55546..00000000
--- a/web/components/auth/login.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-"use client";
-import { signIn } from "next-auth/react";
-
-export const LoginButton = () => {
- return (
- <button
- className="btn btn-primary"
- onClick={() =>
- signIn(undefined, {
- callbackUrl: "/",
- })
- }
- >
- Sign in
- </button>
- );
-};
diff --git a/web/components/auth/logout.tsx b/web/components/auth/logout.tsx
deleted file mode 100644
index 8d627f68..00000000
--- a/web/components/auth/logout.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-"use client";
-import { signOut } from "next-auth/react";
-
-export const LogoutButton = () => {
- return (
- <button
- className="btn btn-ghost normal-case"
- onClick={() =>
- signOut({
- callbackUrl: "/",
- })
- }
- >
- Sign Out
- </button>
- );
-};