refactor: change register name from "sign up" to "register"
This commit is contained in:
parent
4259f38566
commit
273b41d243
|
@ -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>
|
||||||
|
|
|
@ -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 })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue