refactor: change register name from "sign up" to "register"

This commit is contained in:
Derrick Hammer 2024-03-13 13:32:07 -04:00
parent 4259f38566
commit 273b41d243
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ const LoginForm = () => {
Reset Password Reset Password
</Link> </Link>
</p> </p>
<Link to="/sign-up" className="block"> <Link to="/register" className="block">
<Button type="button" className="w-full h-14" variant={"outline"}> <Button type="button" className="w-full h-14" variant={"outline"}>
Create an Account Create an Account
</Button> </Button>

View File

@ -14,7 +14,7 @@ export const meta: MetaFunction = () => {
return [{ title: "Sign Up" }] return [{ title: "Sign Up" }]
} }
const SignUpSchema = z const RegisterSchema = z
.object({ .object({
email: z.string().email(), email: z.string().email(),
password: z password: z
@ -38,12 +38,12 @@ const SignUpSchema = z
return true return true
}) })
export default function SignUp() { export default function Register() {
const [form, fields] = useForm({ const [form, fields] = useForm({
id: "sign-up", id: "register",
constraint: getZodConstraint(SignUpSchema), constraint: getZodConstraint(RegisterSchema),
onValidate({ formData }) { onValidate({ formData }) {
return parseWithZod(formData, { schema: SignUpSchema }) return parseWithZod(formData, { schema: RegisterSchema })
} }
}) })