feat: cancel deal bill, date range in timetable
This commit is contained in:
@@ -23,9 +23,8 @@ const ServicesKitsTable: FC<Props> = ({items, onDelete, onChange}) => {
|
||||
}
|
||||
})
|
||||
}
|
||||
const onDeleteClick = (kit: GetServiceKitSchema) => {
|
||||
const onDeleteClick = () => {
|
||||
if (!onDelete) return;
|
||||
console.log(kit)
|
||||
}
|
||||
return (
|
||||
<BaseTable
|
||||
@@ -46,7 +45,7 @@ const ServicesKitsTable: FC<Props> = ({items, onDelete, onChange}) => {
|
||||
</Tooltip>
|
||||
<Tooltip label="Удалить">
|
||||
<ActionIcon onClick={() => {
|
||||
if (onDelete) onDeleteClick(row.original);
|
||||
if (onDelete) onDeleteClick();
|
||||
}} variant={"default"}>
|
||||
<IconTrash/>
|
||||
</ActionIcon>
|
||||
|
||||
Reference in New Issue
Block a user