diff --git a/mon-entreprise/source/pages/Simulateurs/Page.tsx b/mon-entreprise/source/pages/Simulateurs/Page.tsx index 18878d3a7..656e51322 100644 --- a/mon-entreprise/source/pages/Simulateurs/Page.tsx +++ b/mon-entreprise/source/pages/Simulateurs/Page.tsx @@ -6,8 +6,9 @@ import { SitePathsContext } from 'Components/utils/SitePathsContext' import useSearchParamsSimulationSharing from 'Components/utils/useSearchParamsSimulationSharing' import useSimulationConfig from 'Components/utils/useSimulationConfig' import { default as React, useContext } from 'react' +import emoji from 'react-easy-emoji' import { useTranslation } from 'react-i18next' -import { useLocation } from 'react-router-dom' +import { Link, useLocation } from 'react-router-dom' import { TrackChapter } from '../../ATInternetTracking' import { SimulatorData } from './metadata' @@ -18,6 +19,7 @@ export default function PageData({ tracking, tooltip, description, + iframe, component: Component, seoExplanations, path, @@ -79,8 +81,41 @@ export default function PageData({ {config && } - {seoExplanations && !inIframe && seoExplanations} + {!inIframe && ( + <> + {seoExplanations} + + > + )} > ) } + +function NextSteps({ iframe }: { iframe: string }) { + const sitePaths = useContext(SitePathsContext) + if (!iframe) { + return null + } + return ( + + Aller plus loin + + + {emoji('📱')} + Intégrer le module web + + Ajouter ce simulateur sur votre site internet en un clic + + Découvrir + + + + ) +} diff --git a/mon-entreprise/source/pages/Simulateurs/SalariéSimulation.tsx b/mon-entreprise/source/pages/Simulateurs/SalariéSimulation.tsx index b0e9b0f2f..d30133f0c 100644 --- a/mon-entreprise/source/pages/Simulateurs/SalariéSimulation.tsx +++ b/mon-entreprise/source/pages/Simulateurs/SalariéSimulation.tsx @@ -1,16 +1,13 @@ import Banner from 'Components/Banner' -import PreviousSimulationBanner from 'Components/PreviousSimulationBanner' import Simulation from 'Components/Simulation' import SalaryExplanation from 'Components/simulationExplanation/SalaryExplanation' -import Emoji from 'Components/utils/Emoji' import { SitePathsContext } from 'Components/utils/SitePathsContext' -import { default as React, useContext } from 'react' -import { Trans, useTranslation } from 'react-i18next' +import { useContext } from 'react' +import { Trans } from 'react-i18next' import { Link } from 'react-router-dom' export default function SalariéSimulation() { const sitePaths = useContext(SitePathsContext) - const { language } = useTranslation().i18n return ( <>
+ Ajouter ce simulateur sur votre site internet en un clic +