fix build

This commit is contained in:
2026-04-07 07:07:02 +03:00
parent 11db1e6941
commit 9fd7b61c5a
27 changed files with 74 additions and 64 deletions
@@ -146,14 +146,15 @@ export default function CustomerNotesPage() {
return (
<DashboardPage
header={null}
title="Notes"
toolbar={
<Button size="sm" onClick={() => setDialogOpen(true)}>
<Plus className="size-4" />
Add Note
</Button>
}
headerProps={{
title: "Notes",
actions: (
<Button size="sm" onClick={() => setDialogOpen(true)}>
<Plus className="size-4" />
Add Note
</Button>
),
}}
>
<DataTable
columns={columns}
@@ -16,7 +16,7 @@ export default function CustomerVehiclesPage({ params }: { params: Promise<{ id:
return (
<ResourcePage<VehiclesClient>
toolbar={({ invalidateQuery, selectedItem, closeDialog }) => (
tableHeader={({ invalidateQuery, selectedItem, closeDialog }) => (
<FormDialog title="Vehicle">
{(resourceId) => (
<VehicleForm
@@ -37,7 +37,7 @@ export default function CustomersPage() {
header: ({ column }) => <ColumnHeader column={column} title="Customer" />,
cell: ({ row }) => {
const customerName = row.original.first_name
const isCompany = row.original.customer_type?.name?.toLocaleLowerCase() === "company";
const isCompany = (row.original as any).customer_type?.name?.toLocaleLowerCase() === "company";
const companyName = row.original.company_name
const name = isCompany && companyName ? `${customerName} (${row.original.last_name})` : customerName