From 5062cb9460915624e3f7b808c8f814ba9c31db75 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 4 Mar 2025 21:37:22 +0900 Subject: rm audio feature --- .../GolfWatchAppWithAudioPlayRequest.client.tsx | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx (limited to 'frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx') diff --git a/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx b/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx deleted file mode 100644 index ce5a59c..0000000 --- a/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import { useAtom } from "jotai"; -import { AudioController } from "../.client/audio/AudioController"; -import { audioControllerAtom } from "../states/watch"; -import GolfWatchApp, { type Props } from "./GolfWatchApp.client"; -import SubmitButton from "./SubmitButton"; - -export default function GolfWatchAppWithAudioPlayRequest({ - game, - sockToken, -}: Omit) { - const [audioController, setAudioController] = useAtom(audioControllerAtom); - const audioPlayPermitted = audioController !== null; - - if (audioPlayPermitted) { - return ; - } else { - return ( -
-
- { - const audioController = new AudioController(); - await audioController.loadAll(); - await audioController.playDummySoundEffect(); - setAudioController(audioController); - }} - > - 開始 - -
-
- ); - } -} -- cgit v1.2.3-70-g09d2