Add portal for mobile menu

pull/2365/head
Jérémy Rialland 2022-10-25 11:29:40 +02:00 committed by Jérémy Rialland
parent 65832f376c
commit 1184c4e82d
1 changed files with 14 additions and 10 deletions

View File

@ -53,16 +53,19 @@ export default function MonEntrepriseRulePage() {
!documentationSitePaths[pathname] ? (
<Navigate to="/404" replace />
) : (
<FromBottom>
<TrackPage
chapter1="documentation"
name={documentationSitePaths[pathname]}
/>
<ScrollToTop key={pathname} />
<BackToSimulation />
<Spacing xl />
<DocumentationPageBody />
</FromBottom>
<>
<div id="mobile-menu-portal-id" />
<FromBottom>
<TrackPage
chapter1="documentation"
name={documentationSitePaths[pathname]}
/>
<ScrollToTop key={pathname} />
<BackToSimulation />
<Spacing xl />
<DocumentationPageBody />
</FromBottom>
</>
)
}
/>
@ -122,6 +125,7 @@ function DocumentationPageBody() {
apiDocumentationUrl={absoluteSitePaths.développeur.api}
apiEvaluateUrl="https://mon-entreprise.urssaf.fr/api/v1/evaluate"
npmPackage="modele-social"
mobileMenuPortalId="mobile-menu-portal-id"
/>
</StyledDocumentation>
)