clean code

This commit is contained in:
2025-11-16 20:50:31 +08:00
parent 2bbb5008d2
commit 5d2ec4ac5c
2 changed files with 0 additions and 38 deletions

View File

@@ -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<typeof LightButton>) {
return (
<form
action={async () => {
"use server"
await signIn(provider)
}}
>
<LightButton {...props}>Sign In</LightButton>
</form>
)
}
export function SignOut(props: React.ComponentPropsWithRef<typeof LightButton>) {
return (
<form
action={async () => {
"use server"
await signOut()
}}
className="w-full"
>
<LightButton className="w-full p-0" {...props}>
Sign Out
</LightButton>
</form>
)
}

View File

@@ -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;