From f8a55e182c3a0ccf66772dc6e4cac1a54aa76e09 Mon Sep 17 00:00:00 2001 From: lucieo Date: Mon, 4 Mar 2024 15:20:48 +0100 Subject: [PATCH] New account menu layout --- web/components/Account/AccountMenu.tsx | 18 +++++++++++++----- web/public/locales/fr/account.json | 4 ++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/web/components/Account/AccountMenu.tsx b/web/components/Account/AccountMenu.tsx index 95cc82ae..cf426185 100644 --- a/web/components/Account/AccountMenu.tsx +++ b/web/components/Account/AccountMenu.tsx @@ -73,11 +73,6 @@ const getApplicationsItems = ({ const getPlaceItems = (hasCampaigns) => ({ title: hasCampaigns ? 'solidarity' : 'dashboard', items: [ - { - icon: , - label: 'place.home', - url: ROUTE_ACCOUNT_PLACES, - }, { icon: , label: 'place.question', @@ -241,6 +236,19 @@ const AccountMenu = ({ user }: { user: UsersPermissionsUser }) => { + {user?.confirmed && + user?.accepted && + user?.type === 'place' && + displayMenu({ + title: '', + items: [ + { + icon: , + label: 'place.home', + url: ROUTE_ACCOUNT_PLACES, + }, + ], + })} {user?.confirmed && user?.accepted && displayMenu(user?.type === 'company' ? companyItems : placeItems)} diff --git a/web/public/locales/fr/account.json b/web/public/locales/fr/account.json index 9da743c0..273a6d35 100644 --- a/web/public/locales/fr/account.json +++ b/web/public/locales/fr/account.json @@ -16,10 +16,10 @@ }, "myAccount": "Mon compte", "dashboard": "Tableau de bord", - "solidarity": "Créneaux solidaires", + "solidarity": "StudioD Solidaire", "info": "Mes informations", "applications": { - "menu_title": "Dispositif {{title}}", + "menu_title": "StudioD EMERGENCE", "info": { "title": { "next": "Prochainement",