From 68919fc55b536c4cc851d0d2c6542fb6de30bf56 Mon Sep 17 00:00:00 2001 From: pikiou Date: Fri, 26 May 2023 07:26:23 +0200 Subject: [PATCH] Fix old div bug --- src/components/Navigation/MainMenu.tsx | 6 +++--- src/routes/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Navigation/MainMenu.tsx b/src/components/Navigation/MainMenu.tsx index 6a51100..ba9d087 100644 --- a/src/components/Navigation/MainMenu.tsx +++ b/src/components/Navigation/MainMenu.tsx @@ -28,7 +28,7 @@ interface RestrictMenuItemProps extends MenuItemProps { const RestrictMenuItem: FC = ({ name, pathname, role }): JSX.Element => { const roles = useSelector(selectUserRoles) - return roles.includes(role) ? :
+ return roles.includes(role) ? : <> } interface TeamMenuItemProps extends MenuItemProps { @@ -46,7 +46,7 @@ const TeamMenuItem: FC = ({ name, pathname, team }): JSX.Elem () => volunteers.find((volunteer) => volunteer.id === userId), [volunteers, userId] ) - return user?.team === team ? :
+ return user?.team === team ? : <> } // Hardcoded value of the "Jeux à volonté" team @@ -78,7 +78,7 @@ const MainMenu: FC = (): JSX.Element => { {/* */} - +