feat: tags for expenses, filters by tags in statistics
This commit is contained in:
@@ -2,9 +2,9 @@ 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> {
|
||||
export interface CRUDTableProps<T extends MRT_RowData, C = void> {
|
||||
items: T[];
|
||||
onCreate?: (item: T) => void;
|
||||
onCreate?: (item: C | T) => void;
|
||||
onDelete?: (item: T) => void;
|
||||
onChange?: (item: T) => void;
|
||||
onSelectionChange?: (selectedItems: T[]) => void;
|
||||
|
||||
Reference in New Issue
Block a user