aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApp.client.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-22 13:27:44 +0900
committernsfisis <nsfisis@gmail.com>2024-08-22 13:27:44 +0900
commitdfd33e58a5e6f830d60e978afad7348f7a16068d (patch)
tree8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/components/GolfWatchApp.client.tsx
parent7fda765d654a63945296d813c177aeb9e423f120 (diff)
downloadiosdc-japan-2025-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.tar.gz
iosdc-japan-2025-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.tar.zst
iosdc-japan-2025-albatross-dfd33e58a5e6f830d60e978afad7348f7a16068d.zip
feat(frontend): add minimal style to watch with audio play request
Diffstat (limited to 'frontend/app/components/GolfWatchApp.client.tsx')
-rw-r--r--frontend/app/components/GolfWatchApp.client.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx
index 7ea2ced..c8b1d53 100644
--- a/frontend/app/components/GolfWatchApp.client.tsx
+++ b/frontend/app/components/GolfWatchApp.client.tsx
@@ -1,7 +1,6 @@
import { useAtomValue, useSetAtom } from "jotai";
import { useCallback, useEffect } from "react";
import { useTimer } from "react-use-precision-timer";
-import { AudioController } from "../.client/audio/AudioController";
import type { components } from "../.server/api/schema";
import useWebSocket, { ReadyState } from "../hooks/useWebSocket";
import {
@@ -29,14 +28,9 @@ type Game = components["schemas"]["Game"];
export type Props = {
game: Game;
sockToken: string;
- audioController: AudioController;
};
-export default function GolfWatchApp({
- game,
- sockToken,
- audioController,
-}: Props) {
+export default function GolfWatchApp({ game, sockToken }: Props) {
const socketUrl =
process.env.NODE_ENV === "development"
? `ws://localhost:8002/iosdc-japan/2024/code-battle/sock/golf/${game.game_id}/watch?token=${sockToken}`