Skip to content

Commit

Permalink
add possibility to access inclusion connected account, to modify name…
Browse files Browse the repository at this point in the history
…, email, password...
  • Loading branch information
JeromeBu committed Oct 7, 2024
1 parent e39d217 commit 78206dc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions front/src/app/components/layout/LayoutHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { domElementIds } from "shared";
import { useAppSelector } from "src/app/hooks/reduxHooks";
import { useFeatureFlags } from "src/app/hooks/useFeatureFlags";
import { routes, useRoute } from "src/app/routes/routes";
import { ENV } from "src/config/environmentVariables";
import { authSelectors } from "src/core-logic/domain/auth/auth.selectors";
import { authSlice } from "src/core-logic/domain/auth/auth.slice";
import { makeStyles } from "tss-react/dsfr";
Expand Down Expand Up @@ -83,6 +84,20 @@ export const LayoutHeader = () => {
id: quickAccessIds.agency,
},
},
...(isInclusionConnected
? [
{
text: "Modifier mes informations",
isActive: false,
linkProps: {
href: `https://${
ENV.envType === "production" ? "" : "recette."
}connect.inclusion.beta.gouv.fr/accounts/my-account`,
target: "_blank",
},
},
]
: []),
]}
id={quickAccessIds.myAccount}
buttonLabel={"Mon espace"}
Expand Down

0 comments on commit 78206dc

Please sign in to comment.