Skip to content

Commit

Permalink
feat(playing): use local no song image instead of default path
Browse files Browse the repository at this point in the history
  • Loading branch information
busybox11 committed Dec 4, 2024
1 parent 0c8f1ec commit 39fb756
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes/playing.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "@/styles/playing.css";

import noSong from "@/../public/images/no_song.png";

import { createFileRoute, useNavigate } from "@tanstack/react-router";
import usePlayer from "@/hooks/usePlayer";

Expand Down Expand Up @@ -29,7 +31,7 @@ function PlayingRouteComponent() {
navigate({ to: "/" });
}

const image = playerState?.meta.main_img_url ?? "assets/images/no_song.png";
const image = playerState?.meta.main_img_url ?? noSong;

const title = playerState?.item?.title ?? "NowPlaying";
const artist =
Expand Down

0 comments on commit 39fb756

Please sign in to comment.