Skip to content

Commit

Permalink
Revamp Album Page (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillKirkmanM authored Sep 21, 2024
2 parents f3544d9 + cd6be8e commit ae41c53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/web/components/Music/Player/usePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ export function PlayerProvider({ children }: PlayerProviderProps) {
path: "",
track_number: 0,
id: "",
contributing_artist_ids: [],
music_video: undefined,
duration: 0,
artist_object: {
albums: [],
Expand All @@ -91,6 +93,7 @@ export function PlayerProvider({ children }: PlayerProviderProps) {
icon_url: "",
id: "",
name: "",
featured_on_album_ids: []
},
album_object: {
cover_url: "",
Expand All @@ -102,6 +105,10 @@ export function PlayerProvider({ children }: PlayerProviderProps) {
primary_type: "",
songs: [],
wikidata_id: "",
contributing_artists: [],
contributing_artists_ids: [],
release_album: undefined,
release_group_album: undefined,
},
});
const [artist, setArtist] = useState<Artist>({
Expand All @@ -111,6 +118,8 @@ export function PlayerProvider({ children }: PlayerProviderProps) {
followers: 0,
icon_url: "",
description: "",
featured_on_album_ids: [],
tadb_music_videos: undefined
});
const [album, setAlbum] = useState<Album>({
cover_url: "",
Expand All @@ -122,6 +131,8 @@ export function PlayerProvider({ children }: PlayerProviderProps) {
primary_type: "",
wikidata_id: "",
songs: [],
contributing_artists: [],
contributing_artists_ids: [],
});

const [isPlaying, setIsPlaying] = useState(false);
Expand Down

0 comments on commit ae41c53

Please sign in to comment.