mirror of
https://github.com/zhigang1992/firecms.git
synced 2026-06-13 17:25:44 +08:00
Decoupled entity side view with main view providers
This commit is contained in:
@@ -75,16 +75,8 @@ export function CollectionRowActions<S extends EntitySchema<Key>,
|
||||
setAnchorEl(null);
|
||||
};
|
||||
|
||||
const onContainerClick = selectionEnabled ?
|
||||
(event: MouseEvent) => {
|
||||
if (toggleEntitySelection)
|
||||
toggleEntitySelection(entity);
|
||||
event.stopPropagation();
|
||||
} : undefined;
|
||||
|
||||
return (
|
||||
<div onClick={onContainerClick}
|
||||
className={classes.cellButtonsWrap}>
|
||||
<div className={classes.cellButtonsWrap}>
|
||||
|
||||
{(editEnabled || deleteEnabled || selectionEnabled) &&
|
||||
<div className={classes.cellButtons}
|
||||
|
||||
Reference in New Issue
Block a user