fix: Don't show export and delete when library is empty (#3288)
This commit is contained in:
parent
efb6d0825b
commit
13d9374cde
@ -144,6 +144,8 @@ const LibraryMenuItems = ({
|
|||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
{!!library.length && (
|
||||||
|
<>
|
||||||
<ToolButton
|
<ToolButton
|
||||||
key="export"
|
key="export"
|
||||||
type="button"
|
type="button"
|
||||||
@ -171,7 +173,8 @@ const LibraryMenuItems = ({
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<a
|
<a
|
||||||
href={`https://libraries.excalidraw.com?referrer=${referrer}`}
|
href={`https://libraries.excalidraw.com?referrer=${referrer}`}
|
||||||
target="_excalidraw_libraries"
|
target="_excalidraw_libraries"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user