From 5d2ec4ac5c96c689fa91be41937be5322f9b9671 Mon Sep 17 00:00:00 2001 From: goddonebianu Date: Sun, 16 Nov 2025 20:50:31 +0800 Subject: [PATCH] clean code --- src/components/auth-components.tsx | 34 ------------------------------ src/config/word-board-config.ts | 4 ---- 2 files changed, 38 deletions(-) delete mode 100644 src/components/auth-components.tsx delete mode 100644 src/config/word-board-config.ts diff --git a/src/components/auth-components.tsx b/src/components/auth-components.tsx deleted file mode 100644 index c2716fe..0000000 --- a/src/components/auth-components.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { signIn, signOut } from "next-auth/react"; -import LightButton from "./buttons/LightButton"; - -export function SignIn({ - provider, - ...props -}: { provider?: string } & React.ComponentPropsWithRef) { - return ( -
{ - "use server" - await signIn(provider) - }} - > - Sign In -
- ) -} - -export function SignOut(props: React.ComponentPropsWithRef) { - return ( -
{ - "use server" - await signOut() - }} - className="w-full" - > - - Sign Out - -
- ) -} diff --git a/src/config/word-board-config.ts b/src/config/word-board-config.ts deleted file mode 100644 index d5b71ef..0000000 --- a/src/config/word-board-config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const BOARD_WIDTH = globalThis.innerWidth * 0.68; -export const BOARD_HEIGHT = globalThis.innerHeight * 0.68; -export const TEXT_SIZE = 30; -export const TEXT_WIDTH = TEXT_SIZE * 0.6;