Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
efe324815b
commit
eaa7f7e544
@@ -1335,12 +1335,3 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
|
||||
import type { getRouter } from './router.tsx'
|
||||
import type { createStart } from '@tanstack/react-start'
|
||||
declare module '@tanstack/react-start' {
|
||||
interface Register {
|
||||
ssr: true
|
||||
router: Awaited<ReturnType<typeof getRouter>>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -440,7 +440,19 @@ function InvoiceDetail() {
|
||||
</tr>
|
||||
{sub.items.map((it) => (
|
||||
<tr key={it.id} className={`border-t ${!sub.billable ? "text-muted-foreground" : ""}`}>
|
||||
<td className="px-3 py-2 text-xs">{it.work_date ? formatDate(it.work_date) : "—"}</td>
|
||||
<td className="px-3 py-2 text-xs">
|
||||
{canModify ? (
|
||||
<Input
|
||||
type="date"
|
||||
className="h-8 text-xs"
|
||||
defaultValue={it.work_date ?? ""}
|
||||
onBlur={(e) =>
|
||||
e.target.value !== (it.work_date ?? "") &&
|
||||
updateItem(it.id, { work_date: e.target.value || null })
|
||||
}
|
||||
/>
|
||||
) : it.work_date ? formatDate(it.work_date) : "—"}
|
||||
</td>
|
||||
<td className="px-3 py-2 align-top">
|
||||
{canModify ? (
|
||||
<Input className="h-8" defaultValue={it.description}
|
||||
|
||||
Reference in New Issue
Block a user