From c9851d8dee866e3c5834b0da4c72896503b33b2f Mon Sep 17 00:00:00 2001 From: Juan Di Toro Date: Fri, 22 Mar 2024 14:27:40 +0100 Subject: [PATCH] fix: closes #10 --- app/components/data-table.tsx | 12 ++++++------ app/components/forms.tsx | 2 +- app/components/general-layout.tsx | 2 +- app/components/usage-chart.tsx | 2 +- app/routes/account.tsx | 14 +++++++------- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/components/data-table.tsx b/app/components/data-table.tsx index 54f9bd7..4b08048 100644 --- a/app/components/data-table.tsx +++ b/app/components/data-table.tsx @@ -51,9 +51,9 @@ export function DataTable({ {table.getHeaderGroups().map((headerGroup) => ( - {headerGroup.headers.map((header) => { + {headerGroup.headers.map((header, index) => { return ( - + {header.isPlaceholder ? null : flexRender( @@ -68,14 +68,14 @@ export function DataTable({ {rows.length ? ( - rows.map((row) => ( + rows.map((row, index) => ( - {row.getVisibleCells().map((cell) => ( - + {row.getVisibleCells().map((cell, index) => ( + {flexRender(cell.column.columnDef.cell, cell.getContext())} ))} diff --git a/app/components/forms.tsx b/app/components/forms.tsx index 814adae..ea1d989 100644 --- a/app/components/forms.tsx +++ b/app/components/forms.tsx @@ -1,6 +1,6 @@ import { Label } from "@radix-ui/react-label" import { Input } from "./ui/input" -import { FieldName, useInputControl } from "@conform-to/react" +import { type FieldName, useInputControl } from "@conform-to/react" import { useId } from "react" import { cn } from "~/utils" import { Checkbox } from "~/components/ui/checkbox" diff --git a/app/components/general-layout.tsx b/app/components/general-layout.tsx index b861d04..544e13b 100644 --- a/app/components/general-layout.tsx +++ b/app/components/general-layout.tsx @@ -108,7 +108,7 @@ export const GeneralLayout = ({ children }: React.PropsWithChildren) => { - +