From 273b41d2437a2dc4ca6f4fb0a5dbb016b0285be7 Mon Sep 17 00:00:00 2001
From: Derrick Hammer
Date: Wed, 13 Mar 2024 13:32:07 -0400
Subject: [PATCH] refactor: change register name from "sign up" to "register"
---
app/routes/login.tsx | 2 +-
app/routes/{sign-up.tsx => register.tsx} | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
rename app/routes/{sign-up.tsx => register.tsx} (96%)
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 })
}
})