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
</Link>
</p>
<Link to="/sign-up" className="block">
<Link to="/register" className="block">
<Button type="button" className="w-full h-14" variant={"outline"}>
Create an Account
</Button>

View File

@ -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 })
}
})