Cleanup AudioPlayer component by removing commented-out code sections for improved readability and maintainability.
This commit is contained in:
@@ -86,7 +86,6 @@ export default function Player({ user }) {
|
||||
const [isPlaying, setIsPlaying] = useState(false);
|
||||
const [trackTitle, setTrackTitle] = useState("");
|
||||
const [trackArtist, setTrackArtist] = useState("");
|
||||
// ...existing code...
|
||||
const [trackGenre, setTrackGenre] = useState("");
|
||||
const [trackAlbum, setTrackAlbum] = useState("");
|
||||
const [coverArt, setCoverArt] = useState("/images/radio_art_default.jpg");
|
||||
@@ -219,10 +218,6 @@ export default function Player({ user }) {
|
||||
return () => clearInterval(intervalId);
|
||||
}, [isPlaying, trackDuration]);
|
||||
|
||||
// ...existing code...
|
||||
|
||||
|
||||
// ...existing code...
|
||||
|
||||
|
||||
// Scroll active lyric into view
|
||||
@@ -361,7 +356,6 @@ export default function Player({ user }) {
|
||||
? "bg-yellow-400 dark:bg-yellow-300"
|
||||
: "bg-blue-500 dark:bg-blue-400";
|
||||
|
||||
// ...existing code...
|
||||
|
||||
|
||||
const handleSkip = async (uuid = null) => {
|
||||
|
||||
Reference in New Issue
Block a user