From 3264b237217b177aacd126c0ec0c90142d3a0c62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8F=E3=81=8B?= <100208180+waka-eup25@users.noreply.github.com> Date: Thu, 4 Apr 2024 16:20:24 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20=E3=83=AA=E3=82=B6=E3=83=AB?= =?UTF-8?q?=E3=83=88=E7=94=BB=E9=9D=A2=E3=81=A7=E3=80=8C=E3=82=B2=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=82=92=E7=B5=82=E4=BA=86=E3=81=99=E3=82=8B=E3=80=8D?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typing-app/src/components/templates/GameResult.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/typing-app/src/components/templates/GameResult.tsx b/typing-app/src/components/templates/GameResult.tsx index 1b32570..8b46ed6 100644 --- a/typing-app/src/components/templates/GameResult.tsx +++ b/typing-app/src/components/templates/GameResult.tsx @@ -86,9 +86,14 @@ const GameResult: React.FC = ({ nextPage, resultScore }) => { {resultScore.accuracy.toFixed(1)}% - - + + + From 673b5fd3f0a10b1b92edab0eda227c9e5f29254a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8F=E3=81=8B?= <100208180+waka-eup25@users.noreply.github.com> Date: Thu, 4 Apr 2024 18:07:06 +0900 Subject: [PATCH 2/4] =?UTF-8?q?feat:=20=E3=83=AA=E3=82=B6=E3=83=AB?= =?UTF-8?q?=E3=83=88=E7=94=BB=E9=9D=A2=E3=81=A7=E3=80=8C=E3=82=B2=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=82=92=E7=B5=82=E4=BA=86=E3=81=99=E3=82=8B=E3=80=8D?= =?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=8B=E3=82=89=E3=83=9B=E3=83=BC?= =?UTF-8?q?=E3=83=A0=E3=81=AB=E9=81=B7=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typing-app/src/components/templates/GameResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typing-app/src/components/templates/GameResult.tsx b/typing-app/src/components/templates/GameResult.tsx index 8b46ed6..6f5b315 100644 --- a/typing-app/src/components/templates/GameResult.tsx +++ b/typing-app/src/components/templates/GameResult.tsx @@ -87,7 +87,7 @@ const GameResult: React.FC = ({ nextPage, resultScore }) => { - From 41a7727f8e09515590d2bcbebad32f51da51387c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8F=E3=81=8B?= <100208180+waka-eup25@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:34:21 +0900 Subject: [PATCH 3/4] =?UTF-8?q?style:=20Home=E3=81=B8=E3=81=AE=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E9=81=B7=E7=A7=BB=E3=81=AE=E5=AE=9F=E8=A3=85=E3=82=92?= =?UTF-8?q?useRouter=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typing-app/src/components/templates/GameResult.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/typing-app/src/components/templates/GameResult.tsx b/typing-app/src/components/templates/GameResult.tsx index 6f5b315..3357dce 100644 --- a/typing-app/src/components/templates/GameResult.tsx +++ b/typing-app/src/components/templates/GameResult.tsx @@ -2,6 +2,7 @@ import { ResultScore } from "@/types/RegisterScore"; import { Button, Grid, GridItem, Text } from "@chakra-ui/react"; import React from "react"; import styles from "./GameResult.module.css"; +import { useRouter } from "next/navigation"; interface GameResultProps { nextPage: () => void; @@ -9,6 +10,12 @@ interface GameResultProps { } const GameResult: React.FC = ({ nextPage, resultScore }) => { + const router = useRouter(); + + const pushToRoot = () => { + router.push("/"); + } + return (
@@ -87,7 +94,7 @@ const GameResult: React.FC = ({ nextPage, resultScore }) => { - From eece7ae4bc01fcffb5ccb8db00b682e040005010 Mon Sep 17 00:00:00 2001 From: KinjiKawaguchi Date: Sat, 6 Apr 2024 05:45:56 +0900 Subject: [PATCH 4/4] style: prettier --- typing-app/src/components/templates/GameResult.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typing-app/src/components/templates/GameResult.tsx b/typing-app/src/components/templates/GameResult.tsx index 3357dce..bb74789 100644 --- a/typing-app/src/components/templates/GameResult.tsx +++ b/typing-app/src/components/templates/GameResult.tsx @@ -14,7 +14,7 @@ const GameResult: React.FC = ({ nextPage, resultScore }) => { const pushToRoot = () => { router.push("/"); - } + }; return (