Skip to content

Commit 85f085e

Browse files
committed
fix: update audio file path in Map component to use imported asset
1 parent 1b15d5a commit 85f085e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
File renamed without changes.

src/components/animations/map.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { cn } from "@/lib/utils";
22
import { AnimatePresence, motion, Variants, useInView } from "motion/react";
33
import { useEffect, useRef, useState } from "react";
44
import { Pause, Play } from "lucide-react";
5+
import audioFile from "@/assets/audio.mp3";
56

67
const playingVariants: Variants = {
78
hidden: { opacity: 0, scale: 0.3, filter: "blur(4px)" },
@@ -22,7 +23,7 @@ const Map = () => {
2223

2324
useEffect(() => {
2425
const initializeAudio = async () => {
25-
const audio = new Audio("/audio.mp3");
26+
const audio = new Audio(audioFile);
2627
audio.volume = volume;
2728
audioRef.current = audio;
2829

0 commit comments

Comments
 (0)