This commit is contained in:
2024-03-31 07:36:24 +03:00
parent 98a6dee996
commit 6328ac877a
38 changed files with 385 additions and 106 deletions

11
src/types/CRUDTable.tsx Normal file
View File

@@ -0,0 +1,11 @@
import {RefObject} from "react";
import {BaseTableRef} from "../components/BaseTable/BaseTable.tsx";
import {MRT_RowData} from "mantine-react-table";
export interface CRUDTableProps<T extends MRT_RowData> {
items: T[];
onCreate?: (item: T) => void;
onDelete?: (item: T) => void;
onChange?: (item: T) => void;
tableRef?: RefObject<BaseTableRef<T>>
}

View File

@@ -1,7 +1,7 @@
export type QuickDeal = {
name: string
client_name: string
client_address: string
clientName: string
clientAddress: string
comment:string
acceptance_date: Date
acceptanceDate: Date
}