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 formRef = useRef<HTMLFormElement>(null);
|
||||||
const turnstileRef = useRef<TurnstileInstance>(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 { mutateAsync, isPending } = useGetMagicLink();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
@@ -49,8 +49,8 @@ export function LoginForm({
|
|||||||
<div className="flex size-8 items-center justify-center rounded-md">
|
<div className="flex size-8 items-center justify-center rounded-md">
|
||||||
<NixOSLogo className="size-6" />
|
<NixOSLogo className="size-6" />
|
||||||
</div>
|
</div>
|
||||||
<span className="sr-only">Nix CN Meetup #2</span>
|
<span className="sr-only">Nix CN CMS</span>
|
||||||
<h1 className="text-xl font-bold">欢迎来到 Nix CN Meetup #2</h1>
|
<h1 className="text-xl font-bold">欢迎来到 Nix CN CMS</h1>
|
||||||
</div>
|
</div>
|
||||||
<Field>
|
<Field>
|
||||||
<FieldLabel htmlFor="email">参会登记Email</FieldLabel>
|
<FieldLabel htmlFor="email">参会登记Email</FieldLabel>
|
||||||
|
|||||||
Reference in New Issue
Block a user