mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-22 20:11:50 -07:00
show musicbrainz link when not logged in
This commit is contained in:
parent
4ac357816e
commit
b46fb1873f
1 changed files with 88 additions and 86 deletions
|
|
@ -99,7 +99,6 @@ export default function MediaLayout(props: Props) {
|
|||
<h1>{props.title}</h1>
|
||||
{props.subContent}
|
||||
</div>
|
||||
{user && (
|
||||
<div className="absolute left-1 sm:right-1 sm:left-auto -top-9 sm:top-1 flex gap-3 items-center">
|
||||
{props.musicbrainzId && (
|
||||
<Link
|
||||
|
|
@ -112,6 +111,8 @@ export default function MediaLayout(props: Props) {
|
|||
<MbzIcon size={iconSize} hover />
|
||||
</Link>
|
||||
)}
|
||||
{user && (
|
||||
<>
|
||||
{props.type === "Track" && (
|
||||
<>
|
||||
<button
|
||||
|
|
@ -188,9 +189,10 @@ export default function MediaLayout(props: Props) {
|
|||
id={props.id}
|
||||
type={props.type}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{props.children}
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue