Skip to content

Commit

Permalink
fix:prettierかけた
Browse files Browse the repository at this point in the history
  • Loading branch information
Shibatch28 committed Mar 29, 2024
1 parent 77ce97c commit efb86b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions typing-app/src/app/game/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <GamePage fileContent={fileContent} />;
}
3 changes: 1 addition & 2 deletions typing-app/src/components/molecules/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: "テストユーザー",
Expand All @@ -12,7 +11,7 @@ const UserCard: React.FC = () => {

return (
user && (
<Box bg={ "blue.600" } p={5} >
<Box bg={"blue.600"} p={5}>
<HStack spacing={4}>
<Avatar src={user.avatarUrl} maxW="100px" borderRadius="9" />
<VStack align="start">
Expand Down
2 changes: 1 addition & 1 deletion typing-app/src/components/organism/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Footer: React.FC = () => {
return (
<>
<Separator />
<Flex alignItems="center" justifyContent="space-between" bg={ "blue.600" }>
<Flex alignItems="center" justifyContent="space-between" bg={"blue.600"}>
<BrandText />
</Flex>
</>
Expand Down
2 changes: 1 addition & 1 deletion typing-app/src/components/templates/GameResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const GameResult: React.FC<GameResultProps> = ({ nextPage, resultScore }) => {
</GridItem>
<GridItem colSpan={3} colStart={6} rowStart={6} className={styles.centerText}>
<Text fontSize="2xl" as="b">
{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))}
</Text>
</GridItem>
Expand Down

0 comments on commit efb86b2

Please sign in to comment.