feat: cancel deal bill, date range in timetable

This commit is contained in:
2024-08-09 05:23:55 +03:00
parent 75860395b2
commit 0a971819dc
11 changed files with 309 additions and 35 deletions

View File

@@ -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>