updates on the setting page
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user