mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-27 16:50:11 +02:00
hide share btn when its not users creation
This commit is contained in:
@@ -84,6 +84,8 @@ export function MainHeader({
|
|||||||
</span>
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{!isNotMine && (
|
||||||
<button
|
<button
|
||||||
class="btn btn--dark hint--bottom-left"
|
class="btn btn--dark hint--bottom-left"
|
||||||
aria-label={i18n._(t`Share this creation publicly`)}
|
aria-label={i18n._(t`Share this creation publicly`)}
|
||||||
@@ -103,6 +105,7 @@ export function MainHeader({
|
|||||||
</svg>
|
</svg>
|
||||||
{currentItem.isPublic ? null : <Trans>Share</Trans>}
|
{currentItem.isPublic ? null : <Trans>Share</Trans>}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn btn--dark hint--bottom-left"
|
class="btn btn--dark hint--bottom-left"
|
||||||
|
Reference in New Issue
Block a user