1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +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,47 +70,33 @@ export const DependencyActions: FC<{
disableScrollLock={true} disableScrollLock={true}
> >
<MenuList aria-labelledby={id}> <MenuList aria-labelledby={id}>
<ConditionallyRender <MenuItem
condition={true} onClick={() => {
show={ onEdit();
<MenuItem closeActions();
onClick={() => { }}
onEdit(); >
closeActions(); <ListItemIcon>
}} <Edit />
> </ListItemIcon>
<ListItemIcon> <ListItemText>
<Edit /> <Typography variant='body2'>Edit</Typography>
</ListItemIcon> </ListItemText>
<ListItemText> </MenuItem>
<Typography variant='body2'>
Edit
</Typography>
</ListItemText>
</MenuItem>
}
/>
<ConditionallyRender <MenuItem
condition={true} onClick={() => {
show={ onDelete();
<MenuItem closeActions();
onClick={() => { }}
onDelete(); >
closeActions(); <ListItemIcon>
}} <Delete />
> </ListItemIcon>
<ListItemIcon> <ListItemText>
<Delete /> <Typography variant='body2'>Delete</Typography>
</ListItemIcon> </ListItemText>
<ListItemText> </MenuItem>
<Typography variant='body2'>
Delete
</Typography>
</ListItemText>
</MenuItem>
}
/>
</MenuList> </MenuList>
</StyledPopover> </StyledPopover>
</Box> </Box>