diff --git a/app/routes/login.tsx b/app/routes/login.tsx index 2aa0b63..2ceb5e4 100644 --- a/app/routes/login.tsx +++ b/app/routes/login.tsx @@ -140,7 +140,7 @@ const LoginForm = () => { Reset Password
- + diff --git a/app/routes/sign-up.tsx b/app/routes/register.tsx similarity index 96% rename from app/routes/sign-up.tsx rename to app/routes/register.tsx index 138c6d9..63587b7 100644 --- a/app/routes/sign-up.tsx +++ b/app/routes/register.tsx @@ -14,7 +14,7 @@ export const meta: MetaFunction = () => { return [{ title: "Sign Up" }] } -const SignUpSchema = z +const RegisterSchema = z .object({ email: z.string().email(), password: z @@ -38,12 +38,12 @@ const SignUpSchema = z return true }) -export default function SignUp() { +export default function Register() { const [form, fields] = useForm({ - id: "sign-up", - constraint: getZodConstraint(SignUpSchema), + id: "register", + constraint: getZodConstraint(RegisterSchema), onValidate({ formData }) { - return parseWithZod(formData, { schema: SignUpSchema }) + return parseWithZod(formData, { schema: RegisterSchema }) } })