From 7b903bf9ceacf5b3b8de62ce53c20293cc0a6565 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 2 May 2021 12:05:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Corrige=20le=20lien=20vers=20l'i?= =?UTF-8?q?nt=C3=A9gration=20iframe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/source/locales/ui-en.yaml | 3 ++ .../source/pages/Simulateurs/Page.tsx | 28 ++++++++----------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/mon-entreprise/source/locales/ui-en.yaml b/mon-entreprise/source/locales/ui-en.yaml index 05eef43f8..e891209c0 100644 --- a/mon-entreprise/source/locales/ui-en.yaml +++ b/mon-entreprise/source/locales/ui-en.yaml @@ -835,6 +835,9 @@ newsletter: Subscribe to our monthly newsletter to receive <2>official advice on starting a business and access new features in advance. titre: Stay informed +nextSteps: + integration-iframe: <0>{emoji('📱')} Integrate the web module<1>Add this + simulator to your website in one click via a turnkey script. non: no non applicable si: not applicable if non déductible: not deductible diff --git a/mon-entreprise/source/pages/Simulateurs/Page.tsx b/mon-entreprise/source/pages/Simulateurs/Page.tsx index 2f56cf20b..651d32529 100644 --- a/mon-entreprise/source/pages/Simulateurs/Page.tsx +++ b/mon-entreprise/source/pages/Simulateurs/Page.tsx @@ -8,11 +8,10 @@ import useSearchParamsSimulationSharing from 'Components/utils/useSearchParamsSi 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 { Trans, useTranslation } from 'react-i18next' import { Link, useLocation } from 'react-router-dom' import { TrackChapter } from '../../ATInternetTracking' -import { SimulateurCard } from './Home' -import useSimulatorsData, { SimulatorData, SimulatorId } from './metadata' +import useSimulatorsData, { SimulatorData } from './metadata' export default function PageData({ meta, @@ -125,8 +124,7 @@ function NextSteps({ iframePath, nextSteps }: NextStepsProps) { target="_blank" >
- {emoji('📖')}{' '} - {guideUrssaf.title} + {emoji('📖')} {guideUrssaf.title}

Des conseils pour se lancer dans la création et une présentation @@ -145,9 +143,7 @@ function NextSteps({ iframePath, nextSteps }: NextStepsProps) { }} >

- - {emoji(simulators[simulatorId].icône)} - + {emoji(simulators[simulatorId].icône)}{' '} {simulators[simulatorId].shortName}

@@ -160,16 +156,16 @@ function NextSteps({ iframePath, nextSteps }: NextStepsProps) { className="ui__ interactive card box thiner" to={{ pathname: sitePaths.integration.iframe, - search: `?module=`, + search: `?module=${iframePath}`, }} > -

- {emoji('📱')} Intégrer le - module web -
-

- Ajouter ce simulateur sur votre site internet en un clic -

+ +
{emoji('📱')} Intégrer le module web
+

+ Ajouter ce simulateur sur votre site internet en un clic via + un script clé en main. +

+
)}