From a22f163a9f9a23ec8ae74ec2263c1fcbc7acbbca Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Tue, 20 Nov 2018 13:27:57 +0100 Subject: [PATCH] =?UTF-8?q?:alien:=20ajoute=20la=20video=20en=20fran=C3=A7?= =?UTF-8?q?ais=20pour=20mon-entreprise?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/Simu.js | 3 ++- .../pages/SocialSecurity/Home.js | 15 ++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/source/components/Simu.js b/source/components/Simu.js index e584c6589..e02275881 100644 --- a/source/components/Simu.js +++ b/source/components/Simu.js @@ -58,6 +58,7 @@ export default compose( nextSteps, startConversation, blockingInputControls, + displayHiringProcedures, match, validInputEntered, location @@ -120,7 +121,7 @@ export default compose( pouvez maintenant concrétiser votre projet d'embauche.

- {this.props.displayHiringProcedures && ( + {displayHiringProcedures && (
{ render() { @@ -66,7 +70,9 @@ class SocialSecurity extends Component { width: '100%', height: '100%' }} - src="https://www.youtube-nocookie.com/embed/dN9ZVazSmpc?rel=0&showinfo=0" + src={`https://www.youtube-nocookie.com/embed/${ + this.props.language === 'fr' ? 'EMQ3fNyMxBE' : 'dN9ZVazSmpc' + }?rel=0&showinfo=0`} frameBorder="0" allow="autoplay; encrypted-media" allowFullScreen @@ -82,4 +88,7 @@ class SocialSecurity extends Component { } } -export default withI18n()(SocialSecurity) +export default compose( + withI18n(), + withLanguage +)(SocialSecurity)