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>
|
<h1>{props.title}</h1>
|
||||||
{props.subContent}
|
{props.subContent}
|
||||||
</div>
|
</div>
|
||||||
{user && (
|
|
||||||
<div className="absolute left-1 sm:right-1 sm:left-auto -top-9 sm:top-1 flex gap-3 items-center">
|
<div className="absolute left-1 sm:right-1 sm:left-auto -top-9 sm:top-1 flex gap-3 items-center">
|
||||||
{props.musicbrainzId && (
|
{props.musicbrainzId && (
|
||||||
<Link
|
<Link
|
||||||
|
|
@ -112,6 +111,8 @@ export default function MediaLayout(props: Props) {
|
||||||
<MbzIcon size={iconSize} hover />
|
<MbzIcon size={iconSize} hover />
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
{user && (
|
||||||
|
<>
|
||||||
{props.type === "Track" && (
|
{props.type === "Track" && (
|
||||||
<>
|
<>
|
||||||
<button
|
<button
|
||||||
|
|
@ -188,9 +189,10 @@ export default function MediaLayout(props: Props) {
|
||||||
id={props.id}
|
id={props.id}
|
||||||
type={props.type}
|
type={props.type}
|
||||||
/>
|
/>
|
||||||
</div>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{props.children}
|
{props.children}
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue