crap
This commit is contained in:
11
src/types/CRUDTable.tsx
Normal file
11
src/types/CRUDTable.tsx
Normal 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>>
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user