@riosst100/pwa-marketplace 2.2.8 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/ProductListTab/productListTab.js +4 -4
- package/src/overwrites/peregrine/lib/talons/Header/useStoreSwitcher.js +1 -1
- package/src/overwrites/peregrine/lib/talons/MagentoRoute/useMagentoRoute.js +1 -1
- package/src/talons/Header/useWebsiteSwitcher.js +1 -1
- package/src/talons/WebsiteSwitcher/useWebsiteSwitcher.js +1 -1
package/package.json
CHANGED
|
@@ -39,10 +39,10 @@ const ProductListTab = props => {
|
|
|
39
39
|
'label': 'Pre Order',
|
|
40
40
|
'value': 'lof_preorder'
|
|
41
41
|
},
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
42
|
+
// {
|
|
43
|
+
// 'label': 'Auction',
|
|
44
|
+
// 'value': 'auction'
|
|
45
|
+
// }
|
|
46
46
|
];
|
|
47
47
|
|
|
48
48
|
const handleClickremove = useCallback((group, item) => {
|
|
@@ -156,7 +156,7 @@ export const useStoreSwitcher = (props = {}) => {
|
|
|
156
156
|
newPath = routeData.route.relative_url;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
return newPath
|
|
159
|
+
return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
|
|
160
160
|
},
|
|
161
161
|
[pathname, fetchRouteData, internalRoutes]
|
|
162
162
|
);
|
|
@@ -156,7 +156,7 @@ export const useWebsiteSwitcher = (props = {}) => {
|
|
|
156
156
|
newPath = routeData.route.relative_url;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
return newPath
|
|
159
|
+
return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
|
|
160
160
|
},
|
|
161
161
|
[pathname, fetchRouteData, internalRoutes]
|
|
162
162
|
);
|
|
@@ -156,7 +156,7 @@ export const useWebsiteSwitcher = (props = {}) => {
|
|
|
156
156
|
newPath = routeData.route.relative_url;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
return newPath
|
|
159
|
+
return newPath?.startsWith('/') ? newPath.substr(1) : newPath;
|
|
160
160
|
},
|
|
161
161
|
[pathname, fetchRouteData, internalRoutes]
|
|
162
162
|
);
|