@zac-apps/commons 1.3.3 → 1.3.4-beta.2
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/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,7 +203,8 @@ function MenuButton(_ref) {
|
|
|
203
203
|
|
|
204
204
|
function NextListMenu(_ref) {
|
|
205
205
|
var availApps = _ref.availApps,
|
|
206
|
-
start = _ref.start
|
|
206
|
+
start = _ref.start,
|
|
207
|
+
basePath = _ref.basePath;
|
|
207
208
|
var _React$useState = React.useState(null),
|
|
208
209
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
209
210
|
anchorEl = _React$useState2[0],
|
|
@@ -216,7 +217,9 @@ function NextListMenu(_ref) {
|
|
|
216
217
|
setAnchorEl(null);
|
|
217
218
|
};
|
|
218
219
|
var pathname = usePathname();
|
|
219
|
-
|
|
220
|
+
if (!basePath || basePath === null) {
|
|
221
|
+
basePath = "/";
|
|
222
|
+
}
|
|
220
223
|
function StartEntry() {
|
|
221
224
|
if (start) {
|
|
222
225
|
return /*#__PURE__*/jsxs(React.Fragment, {
|
|
@@ -313,6 +316,7 @@ function AppWrapper(_ref) {
|
|
|
313
316
|
}),
|
|
314
317
|
children: menu ? /*#__PURE__*/jsx(NextListMenu, {
|
|
315
318
|
availApps: availApps,
|
|
319
|
+
basePath: basePath,
|
|
316
320
|
start: true
|
|
317
321
|
}) : null
|
|
318
322
|
}), /*#__PURE__*/jsx(Box, {
|