mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-12 07:12:54 +01:00
feat: Version control commit, View on GitHub (#17)
* feat: Version control commit, View on GitHub * fix: MenuDialog allow undefined menu item This makes it a lot easier to create conditional menu items
This commit is contained in:
@@ -72,7 +72,7 @@ export function MenuDialog({
|
||||
hasArrow
|
||||
>
|
||||
<div className={classNames(css['Root'], css[width])} style={{ maxHeight: UNSAFE_maxHeight }}>
|
||||
{items.map((item, i) => {
|
||||
{items.filter(Boolean).map((item, i) => {
|
||||
if (item === 'divider') return <div className={css['Divider']} key={i} />;
|
||||
if (item?.isHidden) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user