1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

PR comment

This commit is contained in:
andreas-unleash 2022-06-07 14:22:51 +03:00
parent de51478e19
commit c26bfcf9da

View File

@ -2,7 +2,7 @@ import { SyntheticEvent, VFC } from 'react';
import { ActionCell } from '../../../common/Table/cells/ActionCell/ActionCell'; import { ActionCell } from '../../../common/Table/cells/ActionCell/ActionCell';
import { Undo } from '@mui/icons-material'; import { Undo } from '@mui/icons-material';
import PermissionIconButton from '../../../common/PermissionIconButton/PermissionIconButton'; import PermissionIconButton from '../../../common/PermissionIconButton/PermissionIconButton';
import { ADMIN } from '../../../providers/AccessProvider/permissions'; import { UPDATE_FEATURE } from '../../../providers/AccessProvider/permissions';
interface IReviveArchivedFeatureCell { interface IReviveArchivedFeatureCell {
onRevive: (event: SyntheticEvent<Element, Event>) => void; onRevive: (event: SyntheticEvent<Element, Event>) => void;
@ -18,7 +18,7 @@ export const ReviveArchivedFeatureCell: VFC<IReviveArchivedFeatureCell> = ({
<PermissionIconButton <PermissionIconButton
onClick={onRevive} onClick={onRevive}
projectId={project} projectId={project}
permission={ADMIN} permission={UPDATE_FEATURE}
tooltipProps={{ title: 'Revive feature' }} tooltipProps={{ title: 'Revive feature' }}
> >
<Undo /> <Undo />