feat(login-form): update app title and dev token default
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
@@ -24,7 +24,7 @@ export function LoginForm({
|
||||
}) {
|
||||
const formRef = useRef<HTMLFormElement>(null);
|
||||
const turnstileRef = useRef<TurnstileInstance>(null);
|
||||
const [token, setToken] = useState<string | null>(null);
|
||||
const [token, setToken] = useState<string | null>(import.meta.env.DEV ? 'turnstile_token' : null);
|
||||
const { mutateAsync, isPending } = useGetMagicLink();
|
||||
const navigate = useNavigate();
|
||||
|
||||
@@ -49,8 +49,8 @@ export function LoginForm({
|
||||
<div className="flex size-8 items-center justify-center rounded-md">
|
||||
<NixOSLogo className="size-6" />
|
||||
</div>
|
||||
<span className="sr-only">Nix CN Meetup #2</span>
|
||||
<h1 className="text-xl font-bold">欢迎来到 Nix CN Meetup #2</h1>
|
||||
<span className="sr-only">Nix CN CMS</span>
|
||||
<h1 className="text-xl font-bold">欢迎来到 Nix CN CMS</h1>
|
||||
</div>
|
||||
<Field>
|
||||
<FieldLabel htmlFor="email">参会登记Email</FieldLabel>
|
||||
|
||||
Reference in New Issue
Block a user