From efb86b20d3a27517684471f28f0722c230662c7c Mon Sep 17 00:00:00 2001 From: Shibatch Date: Fri, 29 Mar 2024 23:35:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:prettier=E3=81=8B=E3=81=91=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typing-app/src/app/game/page.tsx | 4 ++-- typing-app/src/components/molecules/UserCard.tsx | 3 +-- typing-app/src/components/organism/Footer.tsx | 2 +- typing-app/src/components/templates/GameResult.tsx | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/typing-app/src/app/game/page.tsx b/typing-app/src/app/game/page.tsx index 29e1da4..f6ccef5 100644 --- a/typing-app/src/app/game/page.tsx +++ b/typing-app/src/app/game/page.tsx @@ -5,8 +5,8 @@ import path from "path"; export default function Typing() { const randomNumber = Math.floor(Math.random() * 6) + 1; // テキストファイルのパスを指定 - const filePath = path.join(process.cwd(), 'src/assets/texts', `text${randomNumber}.txt`); + const filePath = path.join(process.cwd(), "src/assets/texts", `text${randomNumber}.txt`); // ファイルの内容を同期的に読み込んで fileContent に格納 - const fileContent = fs.readFileSync(filePath, 'utf8'); + const fileContent = fs.readFileSync(filePath, "utf8"); return ; } diff --git a/typing-app/src/components/molecules/UserCard.tsx b/typing-app/src/components/molecules/UserCard.tsx index e72a232..0e09dc5 100644 --- a/typing-app/src/components/molecules/UserCard.tsx +++ b/typing-app/src/components/molecules/UserCard.tsx @@ -2,7 +2,6 @@ import React from "react"; import { Avatar, Box, Text, HStack, VStack } from "@chakra-ui/react"; const UserCard: React.FC = () => { - // モックのユーザー情報 const user = { name: "テストユーザー", @@ -12,7 +11,7 @@ const UserCard: React.FC = () => { return ( user && ( - + diff --git a/typing-app/src/components/organism/Footer.tsx b/typing-app/src/components/organism/Footer.tsx index a1c3c2d..480d712 100644 --- a/typing-app/src/components/organism/Footer.tsx +++ b/typing-app/src/components/organism/Footer.tsx @@ -7,7 +7,7 @@ const Footer: React.FC = () => { return ( <> - + diff --git a/typing-app/src/components/templates/GameResult.tsx b/typing-app/src/components/templates/GameResult.tsx index c221b26..c1653fe 100644 --- a/typing-app/src/components/templates/GameResult.tsx +++ b/typing-app/src/components/templates/GameResult.tsx @@ -73,7 +73,7 @@ const GameResult: React.FC = ({ nextPage, resultScore }) => { - {String(resultScore.time.getMinutes() * 60 + resultScore.time.getSeconds()).padStart(2, '0')}秒 + {String(resultScore.time.getMinutes() * 60 + resultScore.time.getSeconds()).padStart(2, "0")}秒 {String(Math.floor(resultScore.time.getMilliseconds() / 100))}