diff --git a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx index 8506d4a7ec..b76f016a0a 100644 --- a/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx +++ b/frontend/src/component/archive/ArchiveTable/ArchiveTable.tsx @@ -43,22 +43,22 @@ export interface IFeaturesArchiveTableProps { archivedFeatures: FeatureSchema[]; refetch: any; loading: boolean; - inProject: boolean; storedParams: any; setStoredParams: any; searchParams: any; setSearchParams: any; + title: string; } export const ArchiveTable = ({ archivedFeatures = [], loading, - inProject, refetch, storedParams, setStoredParams, searchParams, setSearchParams, + title, }: IFeaturesArchiveTableProps) => { const rowHeight = theme.shape.tableRowHeight; const { classes } = useStyles(); @@ -201,9 +201,7 @@ export const ArchiveTable = ({ isLoading={loading} header={ Promise) { disableGlobalFilter: true, Cell: ({ row: { original } }: any) => ( onRevive(original.name)} /> ), diff --git a/frontend/src/component/archive/ArchiveTable/ReviveArchivedFeatureCell/ReviveArchivedFeatureCell.tsx b/frontend/src/component/archive/ArchiveTable/ReviveArchivedFeatureCell/ReviveArchivedFeatureCell.tsx index e8271a1c77..ed6f6f4f58 100644 --- a/frontend/src/component/archive/ArchiveTable/ReviveArchivedFeatureCell/ReviveArchivedFeatureCell.tsx +++ b/frontend/src/component/archive/ArchiveTable/ReviveArchivedFeatureCell/ReviveArchivedFeatureCell.tsx @@ -1,20 +1,27 @@ import { VFC } from 'react'; import { ActionCell } from '../../../common/Table/cells/ActionCell/ActionCell'; import { Undo } from '@mui/icons-material'; -import { IconButton } from '@mui/material'; +import PermissionIconButton from '../../../common/PermissionIconButton/PermissionIconButton'; +import { ADMIN } from '../../../providers/AccessProvider/permissions'; interface IReviveArchivedFeatureCell { onRevive: any; + project: string; } export const ReviveArchivedFeatureCell: VFC = ({ onRevive, + project, }) => { return ( - + - + ); }; diff --git a/frontend/src/component/archive/FeaturesArchiveTable.tsx b/frontend/src/component/archive/FeaturesArchiveTable.tsx index e7a4d55bae..00ec6242a9 100644 --- a/frontend/src/component/archive/FeaturesArchiveTable.tsx +++ b/frontend/src/component/archive/FeaturesArchiveTable.tsx @@ -23,6 +23,7 @@ export const FeaturesArchiveTable = () => { return ( { storedParams={storedParams} setStoredParams={setStoredParams} refetch={refetchArchived} - inProject={false} /> ); }; diff --git a/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx b/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx index 9b196d3c26..12e5fc0bef 100644 --- a/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx +++ b/frontend/src/component/archive/ProjectFeaturesArchiveTable.tsx @@ -27,6 +27,7 @@ export const ProjectFeaturesArchiveTable = ({ return ( ); };