feat: tags for expenses, filters by tags in statistics

This commit is contained in:
2024-11-27 15:57:56 +04:00
parent 564895c26f
commit 431bc35d8b
37 changed files with 687 additions and 248 deletions

View File

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