mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
disable share button if private
This commit is contained in:
parent
f7ffa43cf1
commit
db1868bf57
@ -157,7 +157,7 @@ export const BottomBar = () => {
|
|||||||
{isPrivate ? "Private" : "Public"}
|
{isPrivate ? "Private" : "Public"}
|
||||||
</StyledBottomBarItem>
|
</StyledBottomBarItem>
|
||||||
)}
|
)}
|
||||||
<StyledBottomBarItem onClick={() => setVisible("share")(true)}>
|
<StyledBottomBarItem onClick={() => setVisible("share")(true)} disabled={isPrivate}>
|
||||||
<AiOutlineLink />
|
<AiOutlineLink />
|
||||||
Share
|
Share
|
||||||
</StyledBottomBarItem>
|
</StyledBottomBarItem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user