diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 92d70af..908955b 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -1335,12 +1335,3 @@ const rootRouteChildren: RootRouteChildren = { export const routeTree = rootRouteImport ._addFileChildren(rootRouteChildren) ._addFileTypes() - -import type { getRouter } from './router.tsx' -import type { createStart } from '@tanstack/react-start' -declare module '@tanstack/react-start' { - interface Register { - ssr: true - router: Awaited> - } -} diff --git a/src/routes/invoices.$invoiceId.tsx b/src/routes/invoices.$invoiceId.tsx index 2455df9..a474882 100644 --- a/src/routes/invoices.$invoiceId.tsx +++ b/src/routes/invoices.$invoiceId.tsx @@ -440,7 +440,19 @@ function InvoiceDetail() { {sub.items.map((it) => ( - {it.work_date ? formatDate(it.work_date) : "—"} + + {canModify ? ( + + e.target.value !== (it.work_date ?? "") && + updateItem(it.id, { work_date: e.target.value || null }) + } + /> + ) : it.work_date ? formatDate(it.work_date) : "—"} + {canModify ? (