|
|
@ -32,6 +32,7 @@ const CrudList = < |
|
|
|
getEditLoading = (previous?: boolean) => previous, |
|
|
|
getEditLoading = (previous?: boolean) => previous, |
|
|
|
listEmpty, |
|
|
|
listEmpty, |
|
|
|
listProps, |
|
|
|
listProps, |
|
|
|
|
|
|
|
onItemClick = (base, ...args) => base(...args), |
|
|
|
refreshInterval = 5000, |
|
|
|
refreshInterval = 5000, |
|
|
|
renderAddForm, |
|
|
|
renderAddForm, |
|
|
|
renderDeleteItem, |
|
|
|
renderDeleteItem, |
|
|
@ -168,11 +169,13 @@ const CrudList = < |
|
|
|
setConfirmDialogOpen(true); |
|
|
|
setConfirmDialogOpen(true); |
|
|
|
}} |
|
|
|
}} |
|
|
|
onEdit={() => setEdit((previous) => !previous)} |
|
|
|
onEdit={() => setEdit((previous) => !previous)} |
|
|
|
onItemClick={(value, key) => { |
|
|
|
onItemClick={(...args) => |
|
|
|
|
|
|
|
onItemClick((value, key) => { |
|
|
|
editDialogRef?.current?.setOpen(true); |
|
|
|
editDialogRef?.current?.setOpen(true); |
|
|
|
|
|
|
|
|
|
|
|
getEntry(`/${key}`); |
|
|
|
getEntry(`/${key}`); |
|
|
|
}} |
|
|
|
}, ...args) |
|
|
|
|
|
|
|
} |
|
|
|
renderListItem={renderListItem} |
|
|
|
renderListItem={renderListItem} |
|
|
|
{...listProps} |
|
|
|
{...listProps} |
|
|
|
/> |
|
|
|
/> |
|
|
|