Skip to content

Commit cb8a0cb

Browse files
committed
feat: hide 'Share' button on private songs
1 parent 62a879d commit cb8a0cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

web/src/modules/song/components/SongPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ export async function SongPage({ id }: { id: string }) {
9191
<div className='flex-grow'></div>
9292
<div className='flex flex-row gap-4 overflow-x-auto'>
9393
{/* <LikeButton /> */}
94-
<ShareButton songId={song.publicId} />
94+
{song.visibility !== 'private' && (
95+
<ShareButton songId={song.publicId} />
96+
)}
9597
<OpenSongInNBSButton song={song} />
9698
<DownloadSongButton song={song} />
9799
</div>

0 commit comments

Comments
 (0)