mirror of
https://github.com/skidoodle/budgetable.git
synced 2025-02-15 03:39:14 +01:00
i forgor
This commit is contained in:
parent
bcfa0f92a6
commit
dedb1c0628
16 changed files with 316 additions and 239 deletions
|
@ -7,15 +7,7 @@ import {
|
|||
} from "@/components/ui/table";
|
||||
import TRow from "@/components/table-row";
|
||||
import TNewRow from "@/components/table-new-row";
|
||||
|
||||
interface Budgetable {
|
||||
id: string;
|
||||
title: string;
|
||||
price: number;
|
||||
link: string;
|
||||
note?: string;
|
||||
status: "Paid" | "Unpaid";
|
||||
}
|
||||
import { Budgetable } from '@/lib/utils';
|
||||
|
||||
interface TWrapperProps {
|
||||
data: Budgetable[];
|
||||
|
@ -33,7 +25,7 @@ interface TWrapperProps {
|
|||
toggleStatus: (row: Budgetable) => Promise<void>;
|
||||
}
|
||||
|
||||
const TWrapper: React.FC<TWrapperProps> = ({
|
||||
const TWrapper = ({
|
||||
data,
|
||||
isEditing,
|
||||
setData,
|
||||
|
@ -44,7 +36,7 @@ const TWrapper: React.FC<TWrapperProps> = ({
|
|||
handleAddRow,
|
||||
handleDeleteRow,
|
||||
toggleStatus,
|
||||
}) => (
|
||||
}: TWrapperProps) => (
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue