Skip to content

Commit

Permalink
fix(admin-ui): Fix custom tabs in customer list
Browse files Browse the repository at this point in the history
Fixes #2788
  • Loading branch information
michaelbromley committed Apr 22, 2024
1 parent d0166a2 commit 482bca9
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions packages/admin-ui/src/lib/customer/src/customer.routes.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
import { Route } from '@angular/router';
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
import {
CanDeactivateDetailGuard,
createResolveData,
CustomerFragment,
detailBreadcrumb,
PageComponent,
PageService,
} from '@vendure/admin-ui/core';

import { CustomerDetailComponent } from './components/customer-detail/customer-detail.component';
import { CustomerGroupListComponent } from './components/customer-group-list/customer-group-list.component';
import { CustomerListComponent } from './components/customer-list/customer-list.component';
import { CustomerFragment, detailBreadcrumb, PageComponent, PageService } from '@vendure/admin-ui/core';

export const createRoutes = (pageService: PageService): Route[] => [
{
path: 'customers',
component: PageComponent,
data: {
locationId: 'customer-list',
breadcrumb: _('breadcrumb.customers'),
},
children: pageService.getPageTabRoutes('customer-list'),
Expand Down

0 comments on commit 482bca9

Please sign in to comment.