clean code
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user