added theme switcher, fixed themes

This commit is contained in:
lnn0q 2025-05-05 18:52:24 +03:00
parent 99f6df1a3b
commit 027deba422
6 changed files with 109 additions and 55 deletions

View file

@ -1,5 +1,5 @@
import { gql } from '@apollo/client';
import { Heading, Input, Stack } from '@chakra-ui/react';
import { Heading, Input, Stack, Text } from '@chakra-ui/react';
import { Button } from '@client/components/ui/button';
import { Field } from '@client/components/ui/field';
import { PasswordInput } from '@client/components/ui/password-input';
@ -8,6 +8,7 @@ import { valibotResolver } from '@hookform/resolvers/valibot';
import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router';
import { useForm } from 'react-hook-form';
import * as v from 'valibot';
import { Link } from '../components/ui/link';
import { useToastMutation } from '../hooks/useToastMutation';
export const Route = createFileRoute('/register')({
@ -22,6 +23,12 @@ function RegisterComponent() {
<Stack flexDirection={'column'} justifyContent={'center'} alignItems={'center'}>
<Heading>Sign up</Heading>
<SignUpForm />
<Text>
Already have an account?{' '}
<Link to="/login" textDecoration="none">
Sign in
</Link>
</Text>
</Stack>
);
}