Skip to content

Commit

Permalink
fix(types): use TopTrack type instead of Track on statistics page
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Feb 6, 2024
1 parent 02ce1c7 commit dcc4b4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Playlist } from '@phosphor-icons/react/dist/ssr'

import { Track, getLastFmTopTracks } from '@/shared/lib/lastFm'
import { TopTrack, getLastFmTopTracks } from '@/shared/lib/lastFm'

const TrackItem = ({ track }: { track: Track }) => (
const TrackItem = ({ track }: { track: TopTrack }) => (
<div className="flex items-center justify-between gap-3 py-2">
<div className="flex flex-1 flex-col overflow-hidden">
<a
Expand Down
2 changes: 1 addition & 1 deletion src/shared/lib/lastFm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function getLastFmTopArtists() {
return artist
}

type TopTrack = {
export type TopTrack = {
streamable: { fulltrack: '0' | '1'; '#text': '0' | '1' }
mbid: string
name: string
Expand Down

0 comments on commit dcc4b4b

Please sign in to comment.