Comparing version 0.6.2-pre.580 to 0.6.2-pre.586
@@ -8,11 +8,10 @@ "use strict"; | ||
const menuItems = piral_core_1.useGlobalState(s => s.components.menuItems); | ||
return (React.createElement(MenuContainer, { type: type }, Object.keys(menuItems).map(name => { | ||
const item = menuItems[name]; | ||
if (item.settings.type === type) { | ||
const Component = item.component; | ||
return (React.createElement(MenuItem, { key: name, type: type }, | ||
React.createElement(Component, null))); | ||
} | ||
return undefined; | ||
}))); | ||
const renderItems = Object.keys(menuItems) | ||
.filter(name => menuItems[name].settings.type === type) | ||
.map(name => ({ | ||
name, | ||
Component: menuItems[name].component, | ||
})); | ||
return (React.createElement(MenuContainer, { type: type }, renderItems.map(({ name, Component }) => (React.createElement(MenuItem, { key: name, type: type }, | ||
React.createElement(Component, null)))))); | ||
}; | ||
@@ -19,0 +18,0 @@ } |
{ | ||
"name": "piral", | ||
"version": "0.6.2-pre.580", | ||
"version": "0.6.2-pre.586", | ||
"description": "The all-in-one piral package.", | ||
@@ -44,4 +44,4 @@ "keywords": [ | ||
"graphql": "^14.3.0", | ||
"piral-core": "^0.6.2-pre.580", | ||
"piral-ext": "^0.6.2-pre.580", | ||
"piral-core": "^0.6.2-pre.586", | ||
"piral-ext": "^0.6.2-pre.586", | ||
"promise-polyfill": "^8.1.0", | ||
@@ -60,3 +60,3 @@ "react": "^16.8.1", | ||
}, | ||
"gitHead": "6a2e2235c4092994728bf85777ee5ff289dade0a" | ||
"gitHead": "1899ceb31b29055f5cb5733fe2692a3acfd371f6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124150
2689
Updatedpiral-core@^0.6.2-pre.586
Updatedpiral-ext@^0.6.2-pre.586