Skip to content

Commit

Permalink
add title track to albums
Browse files Browse the repository at this point in the history
  • Loading branch information
wiznaibus committed Jul 17, 2023
1 parent 5f8ec2c commit e1fd4a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/Album.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const Album = ({
albumId={id}
id={song.id}
trackNumber={song.track_number}
isTitle={song.title_track}
title={song.title}
slug={song.slug}
artists={song.artists}
Expand Down
3 changes: 2 additions & 1 deletion components/Track.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Track = ({
albumId,
id,
trackNumber,
isTitle,
title,
slug,
artists,
Expand Down Expand Up @@ -49,7 +50,7 @@ const Track = ({
<td className="px-1 pt-1.5 pb-2">
{trackNumber}
</td>
<td className="px-1 pt-1.5 pb-2">
<td className={`px-1 pt-1.5 pb-2 ${isTitle && `font-bold`}`}>
{title}
{links && links.map(link => (
<div key={`song-${id}-link-${link.id}`} className="inline-block ml-1">
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1fd4a5

Please sign in to comment.