diff --git a/mapping_workbench/frontend/src/components/app/list/list-file-collection-actions.js b/mapping_workbench/frontend/src/components/app/list/list-file-collection-actions.js
index d5468fb7..6fa94016 100644
--- a/mapping_workbench/frontend/src/components/app/list/list-file-collection-actions.js
+++ b/mapping_workbench/frontend/src/components/app/list/list-file-collection-actions.js
@@ -1,17 +1,16 @@
import {Button} from '@mui/material';
-
import {usePopover} from 'src/hooks/use-popover';
import {useCallback, useState} from "react";
import {paths} from 'src/paths';
-import {useRouter} from "../../../hooks/use-router";
+import {useRouter} from "next/router";
+import {MenuActionButton} from '../../menu-actions';
import ConfirmDialog from "../dialog/confirm-dialog";
export const ListFileCollectionActions = (props) => {
const router = useRouter();
const {itemctx} = props;
- const popover = usePopover();
const handleResourceManagerAction = useCallback(async () => {
router.push({
@@ -48,116 +47,30 @@ export const ListFileCollectionActions = (props) => {
return (
<>
-
- {/**/}
-
-
-
-
- Are you sure you want to delete it?
-
-
- {/*
-
-
-
-
-
-
-
+
+ setConfirmOpen(true)}
+ text='Delete'
+ />
+
-
-
-
-
- */}
+ Are you sure you want to delete it?
+
>
);
};
diff --git a/mapping_workbench/frontend/src/components/app/list/list-item-actions.js b/mapping_workbench/frontend/src/components/app/list/list-item-actions.js
index e76ca4c1..dc52c3fd 100644
--- a/mapping_workbench/frontend/src/components/app/list/list-item-actions.js
+++ b/mapping_workbench/frontend/src/components/app/list/list-item-actions.js
@@ -6,23 +6,16 @@ import VisibilityIcon from '@mui/icons-material/Visibility';
import BorderColorIcon from '@mui/icons-material/BorderColor';
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';
-import {useTheme} from '@mui/material/styles';
-import MenuItem from '@mui/material/MenuItem';
-import ListItemIcon from '@mui/material/ListItemIcon';
-import ListItemText from '@mui/material/ListItemText';
import {paths} from 'src/paths';
import {ACTION} from "../../../api/section";
-import {MenuActionButton} from '../../menu-action-button';
+import {MenuActionButton} from '../../menu-actions';
+
import ConfirmDialog from "../dialog/confirm-dialog";
import {toastError} from "../../app-toast";
export const ListItemActions = (props) => {
const router = useRouter();
- const theme = useTheme()
-
- console.log(theme)
-
const {itemctx, pathnames, onDeleteAction, confirmDialogContent, confirmDialogFooter} = props;
const handleViewAction = () => {
@@ -81,7 +74,7 @@ export const ListItemActions = (props) => {
id="delete_button"
last
action={() => setConfirmOpen(true)}
- icon={}
+ icon={}
text='Delete'
/>
{
+ const [anchor, setAnchor] = useState(null)
+ return <>
+ setAnchor(e.target)}>
+
+
+
+ >
+}
+
export const MenuActionButton = ({id, icon, text, action, last}) => {
const theme = useTheme()
return