pcm-shared-components 0.0.97 → 0.0.98

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.
@@ -241,18 +241,7 @@ export const GenericAppBar = props => {
241
241
  onClick: () => {
242
242
  menu.onClick();
243
243
  }
244
- }, menu.icon)), menu.displayDivider ? /*#__PURE__*/React.createElement(Divider, {
245
- style: {
246
- marginRight: 24,
247
- marginLeft: 6
248
- },
249
- orientation: "vertical",
250
- flexItem: true
251
- }) : /*#__PURE__*/React.createElement("div", {
252
- style: {
253
- marginRight: 24
254
- }
255
- })))); //? ------------------------------------------------
244
+ }, menu.icon))))); //? ------------------------------------------------
256
245
  //! Mobile menu
257
246
  //? ------------------------------------------------
258
247
 
@@ -282,13 +271,25 @@ export const GenericAppBar = props => {
282
271
  //? ------------------------------------------------
283
272
 
284
273
  const MainItems = () => {
274
+ const menuItems = (appBarMenu.mainMenu || []).filter(mn => !(mn.hideMenu && mn.hideMenu === true));
285
275
  return /*#__PURE__*/React.createElement("div", {
286
276
  className: "flex flex-row"
287
- }, (appBarMenu.mainMenu || []).filter(mn => !(mn.hideMenu && mn.hideMenu === true)).map((menu, idx) => /*#__PURE__*/React.createElement(DesktopItemMenu, {
277
+ }, menuItems.map((menu, idx) => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DesktopItemMenu, {
288
278
  key: `desktop_item_menu_${idx}`,
289
279
  menu: menu,
290
280
  idx: idx
291
- })));
281
+ }), idx < menuItems.length - 1 && /*#__PURE__*/React.createElement(React.Fragment, null, menu.displayDivider ? /*#__PURE__*/React.createElement(Divider, {
282
+ style: {
283
+ marginRight: 24,
284
+ marginLeft: 6
285
+ },
286
+ orientation: "vertical",
287
+ flexItem: true
288
+ }) : /*#__PURE__*/React.createElement("div", {
289
+ style: {
290
+ marginRight: 24
291
+ }
292
+ })))));
292
293
  }; // const MainItemMenu = () => (
293
294
  // <div className='flex flex-row'>
294
295
  // <MainItems key='main_item_id' />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.97",
3
+ "version": "0.0.98",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {