From edddd70996b05c4e091b6aa0af6c7f3ef7e690ee Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Mon, 2 Sep 2024 00:42:51 +0900
Subject: react-query で取得した値でセレクトボックスを出すところまで実装
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/SignUpForm1.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/SignUpForm1.tsx')

diff --git a/src/SignUpForm1.tsx b/src/SignUpForm1.tsx
index 76c6020..4be29e9 100644
--- a/src/SignUpForm1.tsx
+++ b/src/SignUpForm1.tsx
@@ -2,15 +2,15 @@ import './SignUp.css'
 import { useForm } from 'react-hook-form'
 import { zodResolver } from "@hookform/resolvers/zod"
 import { useNavigate } from 'react-router-dom';
-import { Form1, form1Schema } from './signUpSchema'
+import { Form1Data, form1Schema } from './signUpSchema'
 
 export const SignUpForm1 = () => {
-  const { register, handleSubmit, formState: { errors } } = useForm<Form1>({
+  const { register, handleSubmit, formState: { errors } } = useForm<Form1Data>({
     resolver: zodResolver(form1Schema),
   });
   const navigate = useNavigate();
 
-  const onsubmit = (state: Form1) => {
+  const onsubmit = (state: Form1Data) => {
     navigate('/sign-up/form2', { state })
   }
   const onerror = (err: any) => console.log(err);
-- 
cgit v1.2.3

