{ e.stopPropagation(); setMenuVisible(false); }}
+ onClick={e => {
+ e.stopPropagation();
+ setMenuVisible(false);
+ }}
className={'absolute bg-white p-2 rounded border border-neutral-700 shadow-lg text-neutral-500 min-w-48'}
>
-
setModal('rename')}
- className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
- >
-
- Rename
-
-
setModal('move')}
- className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
- >
-
- Move
-
-
doCopy()}
- className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
- >
-
- Copy
-
+
+ setModal('rename')}
+ className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
+ >
+
+ Rename
+
+ setModal('move')}
+ className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
+ >
+
+ Move
+
+
+
+ doCopy()}
+ className={'hover:text-neutral-700 p-2 flex items-center hover:bg-neutral-100 rounded'}
+ >
+
+ Copy
+
+
doDownload()}
@@ -149,13 +157,15 @@ export default ({ uuid }: { uuid: string }) => {
Download
-
doDeletion()}
- className={'hover:text-red-700 p-2 flex items-center hover:bg-red-100 rounded'}
- >
-
- Delete
-
+
+ doDeletion()}
+ className={'hover:text-red-700 p-2 flex items-center hover:bg-red-100 rounded'}
+ >
+
+ Delete
+
+