updates on the setting page

This commit is contained in:
2026-09-19 13:00:27 +05:30
parent a044afc614
commit 3e2e9cad3a
6 changed files with 179 additions and 70 deletions

View File

@@ -25,7 +25,7 @@ const custEmail = (row) => row.email || '';
/** Tenant customers carry no booking count; 0 is honest rather than blank. */
const custBookings = (row) => row.totalbookings ?? 0;
export default function Customers() {
export default function Customers({ embedded = false }) {
const navigate = useNavigate();
const { data: customers = [], isLoading, isFetching } = useTenantCustomers();
const updateCustomer = useUpdateTenantCustomer();
@@ -141,13 +141,15 @@ export default function Customers() {
return (
<Stack space="lg">
<PageHeader
actions={
<Button onClick={() => navigate('/doormile/customer/create')}>
<Plus className="mr-1.5 h-4 w-4" /> New customer
</Button>
}
/>
{!embedded && (
<PageHeader
actions={
<Button onClick={() => navigate('/doormile/customer/create')}>
<Plus className="mr-1.5 h-4 w-4" /> New customer
</Button>
}
/>
)}
<Grid cols={4}>
<KpiCard