|
|
@ -38,6 +38,7 @@ const List = forwardRef( |
|
|
|
allowCheckAll: isAllowCheckAll = false, |
|
|
|
allowCheckAll: isAllowCheckAll = false, |
|
|
|
allowEdit: isAllowEdit = false, |
|
|
|
allowEdit: isAllowEdit = false, |
|
|
|
allowItemButton: isAllowItemButton = false, |
|
|
|
allowItemButton: isAllowItemButton = false, |
|
|
|
|
|
|
|
disableDelete = false, |
|
|
|
edit: isEdit = false, |
|
|
|
edit: isEdit = false, |
|
|
|
flexBoxProps, |
|
|
|
flexBoxProps, |
|
|
|
getListItemCheckboxProps, |
|
|
|
getListItemCheckboxProps, |
|
|
@ -88,6 +89,7 @@ const List = forwardRef( |
|
|
|
() => |
|
|
|
() => |
|
|
|
isEdit && isAllowDelete ? ( |
|
|
|
isEdit && isAllowDelete ? ( |
|
|
|
<IconButton |
|
|
|
<IconButton |
|
|
|
|
|
|
|
disabled={disableDelete} |
|
|
|
onClick={onDelete} |
|
|
|
onClick={onDelete} |
|
|
|
size="small" |
|
|
|
size="small" |
|
|
|
sx={{ |
|
|
|
sx={{ |
|
|
@ -100,7 +102,7 @@ const List = forwardRef( |
|
|
|
<MUIDeleteIcon /> |
|
|
|
<MUIDeleteIcon /> |
|
|
|
</IconButton> |
|
|
|
</IconButton> |
|
|
|
) : undefined, |
|
|
|
) : undefined, |
|
|
|
[isAllowDelete, isEdit, onDelete], |
|
|
|
[disableDelete, isAllowDelete, isEdit, onDelete], |
|
|
|
); |
|
|
|
); |
|
|
|
const editItemButton = useMemo(() => { |
|
|
|
const editItemButton = useMemo(() => { |
|
|
|
if (isAllowEditItem) { |
|
|
|
if (isAllowEditItem) { |
|
|
|