updated codegen, fixed tsconfig, added prisma
added login, registration and session check
This commit is contained in:
parent
9518787206
commit
04b606b7fa
24 changed files with 740 additions and 1747 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { gql, useQuery } from '@apollo/client';
|
||||
// import { gql, useQuery } from '@apollo/client';
|
||||
import { Heading, Input, Stack } from '@chakra-ui/react';
|
||||
import { Button } from '@client/components/ui/button';
|
||||
import { Field } from '@client/components/ui/field';
|
||||
import { valibotResolver } from '@hookform/resolvers/valibot';
|
||||
import { createFileRoute } from '@tanstack/react-router';
|
||||
import { useForm } from 'react-hook-form';
|
||||
import { valibotResolver } from '@hookform/resolvers/valibot';
|
||||
import * as v from 'valibot';
|
||||
|
||||
export const Route = createFileRoute('/register')({
|
||||
|
|
@ -53,7 +53,7 @@ function Register() {
|
|||
formState: { errors }
|
||||
} = useForm<FormValues>({ resolver: valibotResolver(schema) });
|
||||
|
||||
const onSubmit = handleSubmit(data => console.log(data));
|
||||
const onSubmit = handleSubmit(data => alert(data));
|
||||
|
||||
return (
|
||||
<form onSubmit={onSubmit}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue