+ )}
{solution && !foldedSteps.includes(solution.cible) && (
@@ -84,8 +84,8 @@ export default compose(
connect(
(state, props) => ({
foldedSteps: state.conversationSteps.foldedSteps,
- controls: analysisWithDefaultsSelector(state)?.controls,
- inversionFail: analysisWithDefaultsSelector(state)?.cache?.inversionFail,
+ controls: analysisWithDefaultsSelector(state) ?.controls,
+ inversionFail: analysisWithDefaultsSelector(state) ?.cache ?.inversionFail,
key: props.language,
hiddenControls: state.simulation.hiddenControls
}),
diff --git a/source/components/ui/index.css b/source/components/ui/index.css
index 6f7e528e2..6e27433e0 100644
--- a/source/components/ui/index.css
+++ b/source/components/ui/index.css
@@ -67,7 +67,7 @@ blockquote {
flex-wrap: wrap;
}
-.ui__ .hide {
+.ui__.hide {
display: none;
}
@media (max-width: 850px) {
diff --git a/source/sites/mon-entreprise.fr/App.js b/source/sites/mon-entreprise.fr/App.js
index 8206b63a5..d86afba6a 100644
--- a/source/sites/mon-entreprise.fr/App.js
+++ b/source/sites/mon-entreprise.fr/App.js
@@ -8,7 +8,7 @@ import Raven from 'raven-js'
import React, { useEffect } from 'react'
import { Helmet } from 'react-helmet'
import { useTranslation } from 'react-i18next'
-import { Redirect, Route, Switch } from 'react-router-dom'
+import { Route, Switch } from 'react-router-dom'
import 'Ui/index.css'
import Provider from '../../Provider'
import { persistEverything, retrievePersistedState } from '../../storage/persistEverything'
@@ -82,7 +82,7 @@ function InFranceRoute({ basename, language }) {
let RouterSwitch = () => {
return (
<>
-
+ {!inIframe() &&
}
@@ -103,7 +103,6 @@ const App = compose(withSitePaths)(({ sitePaths }) => {
+`
+
script.parentNode.insertBefore(iframe, script)
+script.parentNode.insertBefore(links, script)
+
diff --git a/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.js b/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.js
index c24342687..73d25a56d 100644
--- a/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.js
+++ b/source/sites/mon-entreprise.fr/pages/Iframes/IframeFooter.js
@@ -1,7 +1,5 @@
import LangSwitcher from 'Components/LangSwitcher'
import NewsletterRegister from 'Components/NewsletterRegister'
-import marianneSvg from 'Images/marianne.svg'
-import urssafSvg from 'Images/urssaf.svg'
import React, { useEffect, useState } from 'react'
import emoji from 'react-easy-emoji'
import { Trans } from 'react-i18next'
@@ -9,6 +7,7 @@ import screenfull from 'screenfull'
import { isIE } from '../../../../utils'
import Privacy from '../../layout/Footer/Privacy'
+
export default function IframeFooter() {
const [isFullscreen, setIsFullscreen] = useState(screenfull.isFullscreen)
useEffect(() => {
@@ -19,26 +18,6 @@ export default function IframeFooter() {
return (
<>
-
({
- showMonEntrepriseLink: !state.conversationSteps.foldedSteps.length
- }))
-)(function IframeSimulateurEmbauche({ showMonEntrepriseLink, sitePaths }) {
+export default function IframeSimulateurEmbauche() {
+ const sitePaths = useContext(SitePathsContext);
return (
<>
- {showMonEntrepriseLink && (
-
- Dirigeants de société, travailleurs indépendants, ou
- auto-entrepreneurs : calculez vos revenus à l'euro près avec les
- nouveaux simulateurs officiels sur{' '}
-
-
- mon-entreprise.fr
-
-
-
- )}
>
)
-})
+}