Skip to content
Snippets Groups Projects
Commit 509affdd authored by Vincent Fontesse's avatar Vincent Fontesse
Browse files

refactor(mainmenu): replace logout button at the bottom of the menu

parent 39cb05f8
No related branches found
No related tags found
1 merge request!506Resolve "put disconnect option at the bottom of side menu"
Pipeline #12935 passed
......@@ -167,10 +167,6 @@ const MainMenu = ({ user = {} }) => {
>
{i18n.__('components.MainMenu.menuProfileLabel')}
</MenuItem>
<MenuItem className={classes.menuItem} onClick={onLogout}>
{i18n.__('components.MainMenu.menuLogoutLabel')}
</MenuItem>
<Divider />
{menu.map((item) => {
if (item.hidden) {
return null;
......@@ -191,8 +187,6 @@ const MainMenu = ({ user = {} }) => {
</MenuItem>
);
})}
<Divider />
<MenuItem
className={classes.menuItem}
onClick={() => handleMenuClick({ path: '/help', content: 'menuHelpLabel' })}
......@@ -200,6 +194,11 @@ const MainMenu = ({ user = {} }) => {
>
{i18n.__('components.MainMenu.menuHelpLabel')}
</MenuItem>
<Divider />
<MenuItem className={classes.menuItem} onClick={onLogout}>
{i18n.__('components.MainMenu.menuLogoutLabel')}
</MenuItem>
<Divider />
<MenuItem disabled style={{ opacity: 1 }}>
<AppVersion />
</MenuItem>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment