feat(catalog): unify home with catalog and add clear qty controls
This commit is contained in:
@@ -8,7 +8,7 @@ const route = useRoute();
|
||||
const { totalItems } = useClientCart();
|
||||
|
||||
const centerCapsule: NavItem[] = [
|
||||
{ to: '/products', label: 'Каталог' },
|
||||
{ to: '/', label: 'Каталог' },
|
||||
{ to: '/orders', label: 'Мои заказы' },
|
||||
];
|
||||
|
||||
@@ -18,6 +18,9 @@ const rightCapsule: NavItem[] = [
|
||||
];
|
||||
|
||||
function isActive(path: string) {
|
||||
if (path === '/') {
|
||||
return route.path === '/' || route.path.startsWith('/products');
|
||||
}
|
||||
if (path === '/orders') {
|
||||
return route.path === '/orders' || route.path.startsWith('/orders/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user