Skip to content

Commit

Permalink
changed all time to 12 months due to api change
Browse files Browse the repository at this point in the history
  • Loading branch information
nairol203 committed Jun 13, 2024
1 parent ab56d05 commit 5239e3a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const TopTracksCard = () => {
onClick={() => setRange('long_term')}
className={`${range === 'long_term' ? 'bg-white/90 text-black' : 'hover:bg-white/90 hover:text-black'} rounded-full bg-white/20 p-1 px-2 duration-100 ease-in`}
>
All time
12 Months
</button>
</div>
<div>
Expand Down Expand Up @@ -188,7 +188,7 @@ const TopArtistsCard = () => {
onClick={() => setRange('long_term')}
className={`${range === 'long_term' ? 'bg-white/90 text-black' : 'hover:bg-white/90 hover:text-black'} rounded-full bg-white/20 p-1 px-2 duration-100 ease-in`}
>
All time
12 Months
</button>
</div>
<div>
Expand Down Expand Up @@ -264,7 +264,7 @@ const TopGenresCard = () => {
onClick={() => setRange('long_term')}
className={`${range === 'long_term' ? 'bg-white/90 text-black' : 'hover:bg-white/90 hover:text-black'} rounded-full bg-white/20 p-1 px-2 duration-100 ease-in`}
>
All time
12 Months
</button>
</div>
<div className='overflow-hidden text-ellipsis'>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/top/artists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Home() {
6 Months
</button>
<button className={`${range === 'long_term' ? 'underline' : 'opacity-80'} decoration-1 underline-offset-8 hover:underline`} onClick={() => setRange('long_term')}>
All time
12 Months
</button>
</div>
<div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/top/tracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Home() {
6 Months
</button>
<button className={`${range === 'long_term' ? 'underline' : 'opacity-80'} decoration-1 underline-offset-8 hover:underline`} onClick={() => setRange('long_term')}>
All time
12 Months
</button>
</div>
<div>
Expand All @@ -49,7 +49,7 @@ export default function Home() {
<h3 className='overflow-hidden text-ellipsis'>{track.name}</h3>
<div className='flex flex-wrap items-center gap-x-1'>
{track.explicit && (
<span className='rounded bg-slate-300 py-[1px] px-[5.5px] text-[10px] text-black' aria-label='Explicit'>
<span className='rounded bg-slate-300 px-[5.5px] py-[1px] text-[10px] text-black' aria-label='Explicit'>
E
</span>
)}
Expand Down

0 comments on commit 5239e3a

Please sign in to comment.