From f168a75dfea6fc2b2d5d93cea6120277e048f0de Mon Sep 17 00:00:00 2001 From: Sea10wood Date: Sun, 11 Aug 2024 11:31:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20pmpm=20check=E3=81=A7=E3=81=AE=E4=BD=99?= =?UTF-8?q?=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/GetImage/index.tsx | 28 ++++++++++++++-------------- src/pages/result/index.tsx | 7 ++++--- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/components/GetImage/index.tsx b/src/components/GetImage/index.tsx index 55e48f9..3cedabb 100644 --- a/src/components/GetImage/index.tsx +++ b/src/components/GetImage/index.tsx @@ -1,22 +1,22 @@ - interface GetImageProps { - images: string[]; - alt: string; - width: number; - height: number; + images: string[]; + alt: string; + width: number; + height: number; } const GetImage: React.FC = ({ images, alt }) => { - const randomImage = images[Math.floor(Math.random() * images.length)]; + const randomImage = images[Math.floor(Math.random() * images.length)]; - return ( - {alt} - ); + return ( + {alt} + ); }; export default GetImage; diff --git a/src/pages/result/index.tsx b/src/pages/result/index.tsx index 1107717..aa90a4e 100644 --- a/src/pages/result/index.tsx +++ b/src/pages/result/index.tsx @@ -20,7 +20,8 @@ function Result() { images={images} alt="ランダムに表示されるボトル画像" width={160} - height={160} /> + height={160} + />

Bottle Get!

-
+
-
+

また遊びにきてや〜