feat: use howler
Some checks failed
Deploy to VPS (dist) / deploy (push) Has been cancelled

This commit is contained in:
Hewston Fox
2026-03-22 17:37:19 +02:00
parent e5b3b97680
commit 5c08238dbd
15 changed files with 152 additions and 140 deletions

View File

@@ -23,7 +23,7 @@ import rouletteIcon from "./assets/roulette.svg";
import tasksIcon from "./assets/tasks.svg";
import earningsIcon from "./assets/earnings.svg";
import tg, { useTelegramViewportValue } from "@/tg";
import { usePlaySound } from "@/audio";
import { useAudioStore } from "@/audio";
const ANIMATION_DURATION = 0.2;
const SPRING_ANIMATION = {
@@ -193,7 +193,7 @@ function MenuBar({ labelKey, icon, delay, active, onClick }: MenuBarProps) {
}
export default function Navigation() {
const play = usePlaySound();
const play = useAudioStore((s) => s.play);
const matchRoute = useMatchRoute();
const navigate = useNavigate();
const [menuOpen, setMenuOpen] = useState<number>(0);