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

manually clear DependencyActions (#7827)

This commit is contained in:
Tymoteusz Czech 2024-08-12 12:00:46 +02:00 committed by GitHub
parent e77bb1b2e7
commit 8091987aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,5 @@
import type React from 'react'; import type React from 'react';
import { type FC, useState } from 'react'; import { type FC, useState } from 'react';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { import {
IconButton, IconButton,
ListItemIcon, ListItemIcon,
@ -71,9 +70,6 @@ export const DependencyActions: FC<{
disableScrollLock={true} disableScrollLock={true}
> >
<MenuList aria-labelledby={id}> <MenuList aria-labelledby={id}>
<ConditionallyRender
condition={true}
show={
<MenuItem <MenuItem
onClick={() => { onClick={() => {
onEdit(); onEdit();
@ -84,17 +80,10 @@ export const DependencyActions: FC<{
<Edit /> <Edit />
</ListItemIcon> </ListItemIcon>
<ListItemText> <ListItemText>
<Typography variant='body2'> <Typography variant='body2'>Edit</Typography>
Edit
</Typography>
</ListItemText> </ListItemText>
</MenuItem> </MenuItem>
}
/>
<ConditionallyRender
condition={true}
show={
<MenuItem <MenuItem
onClick={() => { onClick={() => {
onDelete(); onDelete();
@ -105,13 +94,9 @@ export const DependencyActions: FC<{
<Delete /> <Delete />
</ListItemIcon> </ListItemIcon>
<ListItemText> <ListItemText>
<Typography variant='body2'> <Typography variant='body2'>Delete</Typography>
Delete
</Typography>
</ListItemText> </ListItemText>
</MenuItem> </MenuItem>
}
/>
</MenuList> </MenuList>
</StyledPopover> </StyledPopover>
</Box> </Box>