all repos — caroster @ a99f9a0e6eaee5048c7d6c15cc34865a13b9c2c0

[Octree] Group carpool to your event https://caroster.io

🐛 Fix lang selection in generic menu
Tim Izzo tim@octree.ch
Mon, 07 Feb 2022 15:27:23 +0000
commit

a99f9a0e6eaee5048c7d6c15cc34865a13b9c2c0

parent

c872ae904fb2e417ae03f9813338907936ebdd4b

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M frontend/containers/GenericMenu/Action.tsxfrontend/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.tsxfrontend/containers/GenericMenu/index.tsx

@@ -30,8 +30,7 @@ },

id: 'AboutTabs', }; const languageMenuItem = { - label: Languages, - isComponentLabel: true, + label: <Languages />, id: 'LanguageSelection', };