revdev-components 0.25.0 → 0.26.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/build/back-sidebar/index.d.ts +1 -0
- package/build/index.js +3 -2
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4951,11 +4951,12 @@ var s$2 = {"root":"index-module_root__oQRmx"};
|
|
|
4951
4951
|
|
|
4952
4952
|
// https://www.einfosoft.com/templates/admin/spice/source/edit_booking.html#
|
|
4953
4953
|
var BackSidebar = function (_a) {
|
|
4954
|
-
var className = _a.className, options = _a.options, top = _a.top, shortMode = _a.shortMode, activePath = _a.activePath;
|
|
4954
|
+
var className = _a.className, options = _a.options, top = _a.top, shortMode = _a.shortMode, activePath = _a.activePath, defaultPath = _a.defaultPath;
|
|
4955
|
+
var path = (activePath || "").replace("/", "") ? activePath : defaultPath;
|
|
4955
4956
|
return (React.createElement("div", { className: classNames(s$2.root, className) },
|
|
4956
4957
|
top ? React.createElement("div", { className: classNames(s$2.top) }, top) : null,
|
|
4957
4958
|
React.createElement("div", { className: s$2.menu }, options.map(function (option, i) {
|
|
4958
|
-
return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, option: option, activePath:
|
|
4959
|
+
return shortMode ? (React.createElement(BackSidebarShortMenuItem, { key: i, option: option, activePath: path })) : (React.createElement(BackSidebarMenuItem, { key: i, option: option, activePath: path }));
|
|
4959
4960
|
}))));
|
|
4960
4961
|
};
|
|
4961
4962
|
|