Skip to content

Commit

Permalink
New account menu layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucieo committed Mar 4, 2024
1 parent b700f86 commit f8a55e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions web/components/Account/AccountMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ const getApplicationsItems = ({
const getPlaceItems = (hasCampaigns) => ({
title: hasCampaigns ? 'solidarity' : 'dashboard',
items: [
{
icon: <Home />,
label: 'place.home',
url: ROUTE_ACCOUNT_PLACES,
},
{
icon: <Question />,
label: 'place.question',
Expand Down Expand Up @@ -241,6 +236,19 @@ const AccountMenu = ({ user }: { user: UsersPermissionsUser }) => {
</Link>
</Flex>
<VStack spacing={12}>
{user?.confirmed &&
user?.accepted &&
user?.type === 'place' &&
displayMenu({
title: '',
items: [
{
icon: <Home />,
label: 'place.home',
url: ROUTE_ACCOUNT_PLACES,
},
],
})}
{user?.confirmed &&
user?.accepted &&
displayMenu(user?.type === 'company' ? companyItems : placeItems)}
Expand Down
4 changes: 2 additions & 2 deletions web/public/locales/fr/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f8a55e1

Please sign in to comment.