From c8d1991d6abcc2c9db72b413a58115c850852286 Mon Sep 17 00:00:00 2001 From: Sea10wood Date: Sun, 11 Aug 2024 15:48:01 +0900 Subject: [PATCH] add: pnpm check --- src/components/responsive/homePC/index.tsx | 4 ++-- src/components/responsive/homeSP/index.tsx | 9 +++++---- src/components/ui/Rule/index.tsx | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/responsive/homePC/index.tsx b/src/components/responsive/homePC/index.tsx index b12a375..98456c2 100644 --- a/src/components/responsive/homePC/index.tsx +++ b/src/components/responsive/homePC/index.tsx @@ -5,9 +5,9 @@ import { copyStringToClipboard } from "../../../utils/copyClipBoard"; import { requestPermission } from "../../../utils/permission"; import QRCodeGenerator from "../../QRCodeGenerator"; import { DefaultButton } from "../../ui/Button"; +import Rule from "../../ui/Rule"; import TextButton from "../../ui/TextButton"; import styles from "./index.module.css"; -import Rule from "../../ui/Rule"; function HomePC() { const navigate = useNavigate(); @@ -62,7 +62,7 @@ function HomePC() { - +
背景にばーちゃるなつまつりのロゴ diff --git a/src/components/responsive/homeSP/index.tsx b/src/components/responsive/homeSP/index.tsx index 69cae8c..78d8ba0 100644 --- a/src/components/responsive/homeSP/index.tsx +++ b/src/components/responsive/homeSP/index.tsx @@ -2,8 +2,8 @@ import { useNavigate } from "react-router-dom"; import { useSocketRefStore } from "../../../store"; import { requestPermission } from "../../../utils/permission"; import { DefaultButton } from "../../ui/Button"; -import styles from "./index.module.css"; import Rule from "../../ui/Rule"; +import styles from "./index.module.css"; function HomeSP() { const navigate = useNavigate(); @@ -14,8 +14,9 @@ function HomeSP() { const params = new URLSearchParams(location.search); const roomId = params.get("room_id"); const socketRef = new WebSocket( - `wss://${import.meta.env.VITE_HOST_NAME || - "virtual-natsumatsuri-3jpy6th4da-an.a.run.app" + `wss://${ + import.meta.env.VITE_HOST_NAME || + "virtual-natsumatsuri-3jpy6th4da-an.a.run.app" }/ws?room_id=${roomId}`, ); setRef({ current: socketRef }); @@ -23,7 +24,7 @@ function HomeSP() { audio .play() .then(() => { - setTimeout(() => { }, 500); + setTimeout(() => {}, 500); }) .catch((error) => { console.error("オーディオの音が出なかった", error); diff --git a/src/components/ui/Rule/index.tsx b/src/components/ui/Rule/index.tsx index df2ebf4..1f77951 100644 --- a/src/components/ui/Rule/index.tsx +++ b/src/components/ui/Rule/index.tsx @@ -1,6 +1,6 @@ function Rule() { return ( -
+

〜ルール〜

1,画面にスマホを向け、ポインタの位置を確認(1回につき3発のコルク玉が渡されます)