From 10a56570e550da00daa0ed7e09d4949439ae37bc Mon Sep 17 00:00:00 2001 From: Apostolof Date: Mon, 14 Dec 2020 20:36:34 +0200 Subject: [PATCH] refactor: move about menu item out of dropdown --- .../MainLayout/MainLayoutMenu/index.jsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx index 328bf54..480b219 100644 --- a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx +++ b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx @@ -35,7 +35,7 @@ const MainLayoutMenu = () => { link name="home" key="home" - onClick={() => { history.push('/'); }} + onClick={() => history.push('/')} > app_logo @@ -45,7 +45,7 @@ const MainLayoutMenu = () => { link name="create-topic" key="create-topic" - onClick={() => { history.push('/topics/new'); }} + onClick={() => history.push('/topics/new')} position="right" > {t('topbar.button.create.topic')} @@ -57,7 +57,7 @@ const MainLayoutMenu = () => { link name="profile" key="profile" - onClick={() => { history.push('/profile'); }} + onClick={() => history.push('/profile')} > {t('topbar.button.profile')} @@ -67,11 +67,19 @@ const MainLayoutMenu = () => { link name="register" key="register" - onClick={() => { history.push('/auth/register'); }} + onClick={() => history.push('/auth/register')} > {t('topbar.button.register')} )} + history.push('/about')} + > + {t('topbar.button.about')} + @@ -82,13 +90,6 @@ const MainLayoutMenu = () => { > {t('topbar.button.clear.databases')} - { history.push('/about'); }} - > - {t('topbar.button.about')} -