mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
PR comment
This commit is contained in:
parent
de51478e19
commit
c26bfcf9da
@ -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 />
|
||||||
|
Loading…
Reference in New Issue
Block a user