Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
add: pnpm check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sea10wood committed Aug 11, 2024
1 parent 9dea0bb commit c8d1991
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/responsive/homePC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -62,7 +62,7 @@ function HomePC() {
</ul>
</div>
</div>

<div className={styles["left-container"]}>
<div className={styles["background-logo"]}>
<img src="/logo.webp" alt="背景にばーちゃるなつまつりのロゴ" />
Expand Down
9 changes: 5 additions & 4 deletions src/components/responsive/homeSP/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -14,16 +14,17 @@ 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 });
const audio = new Audio("/sound/wadaiko.mp3");
audio
.play()
.then(() => {
setTimeout(() => { }, 500);
setTimeout(() => {}, 500);
})
.catch((error) => {
console.error("オーディオの音が出なかった", error);
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Rule/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function Rule() {
return (
<div >
<div>
<p>〜ルール〜</p>
<p>
1,画面にスマホを向け、ポインタの位置を確認(1回につき3発のコルク玉が渡されます)
Expand Down

0 comments on commit c8d1991

Please sign in to comment.