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
|
||||
</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>
|
||||
|
|
|
@ -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 })
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue