🐛 Fix lang selection in generic menu
Tim Izzo tim@octree.ch
Mon, 07 Feb 2022 15:27:23 +0000
2 files changed,
2 insertions(+),
3 deletions(-)
M
frontend/containers/GenericMenu/Action.tsx
→
frontend/containers/GenericMenu/Action.tsx
@@ -22,7 +22,7 @@ const classes = useStyles();
if (divider) return <Divider variant="fullWidth" className={classes.divider} />; - else if (isValidElement(action.label)) return action.label; + else if (isValidElement(label)) return label; else if (onClick) return ( <MenuItem id={id} onClick={onClick} {...menuItemProps}>
M
frontend/containers/GenericMenu/index.tsx
→
frontend/containers/GenericMenu/index.tsx
@@ -30,8 +30,7 @@ },
id: 'AboutTabs', }; const languageMenuItem = { - label: Languages, - isComponentLabel: true, + label: <Languages />, id: 'LanguageSelection', };