From 2d236ab98ad475a49657341dd7033e32627fe297 Mon Sep 17 00:00:00 2001
From: Masaya Tojo <masaya@tojo.tokyo>
Date: Tue, 3 Sep 2024 00:14:35 +0900
Subject: 確認画面で「送信」を押すとconsole.logに入力内容を出力させておく
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/SignUpConfirm.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/SignUpConfirm.tsx')

diff --git a/src/SignUpConfirm.tsx b/src/SignUpConfirm.tsx
index 63b9d10..b1a4548 100644
--- a/src/SignUpConfirm.tsx
+++ b/src/SignUpConfirm.tsx
@@ -14,6 +14,10 @@ export const SignUpConfirm = () => {
   const { form1, form2, form3 } = data
   const form: FormData = { ...form1, ...form2, ...form3 }
 
+  const onclick = () => {
+    console.log(form)
+  }
+
   return (
     <>
       <h1>会員登録 確認画面</h1>
@@ -36,7 +40,7 @@ export const SignUpConfirm = () => {
           <p>お気に入りの GitHub リポジトリ: {form.repoName}</p>
         </div>
       </div>
-      <button>送信</button>
+      <button onClick={onclick}>送信</button >
     </>
   );
 }
-- 
cgit v1.2.3

