Revert "🐎 ajoute du loading asynchrone sur embauche"

This reverts commit 1bc7af78ac.
pull/328/head
Johan Girod 2018-09-04 16:22:37 +02:00
parent 878e064892
commit 5eee74436a
2 changed files with 13 additions and 25 deletions

View File

@ -2,7 +2,6 @@ import Mecanisms from 'Components/Mecanisms'
import RulePage from 'Components/RulePage'
import TrackPageView from 'Components/utils/TrackPageView'
import React, { Component } from 'react'
import Loadable from 'react-loadable'
import { Redirect, Route, Switch } from 'react-router-dom'
import 'Ui/index.css'
import Provider from '../../Provider'
@ -14,22 +13,14 @@ import { inIframe } from '../../utils'
import About from './pages/About'
import Contact from './pages/Contact'
import Contribution from './pages/Contribution'
import Couleur from './pages/Couleur'
import { Header } from './pages/Header'
import Home from './pages/Home'
import IframeFooter from './pages/IframeFooter'
import Integration from './pages/Integration'
import IntegrationTest from './pages/IntegrationTest'
import Route404 from './pages/Route404'
const RulesList = Loadable({
loader: () => import('./pages/RulesList'),
loading: () => null
})
const Couleur = Loadable({
loader: () => import('./pages/Couleur'),
loading: () => null
})
import RulesList from './pages/RulesList'
class EmbaucheRoute extends Component {
render() {

View File

@ -1,12 +1,11 @@
import PreviousSimulationBanner from 'Components/PreviousSimulationBanner'
import Simu from 'Components/Simu'
import Marianne from 'Images/marianne.svg'
import URSSAF from 'Images/urssaf.svg'
import React from 'react'
import { inIframe } from '../../../utils'
import Simulateur from './../images/logo/logo-simulateur.svg'
import Marianne from 'Images/marianne.svg'
import Simulateur from './../images/logo/logo-simulateur.svg';
import URSSAF from 'Images/urssaf.svg'
import './Home.css'
import { inIframe } from "../../../utils";
const Home = () => (
<div id="home" className="ui__ container">
<PreviousSimulationBanner />
@ -26,15 +25,13 @@ const Home = () => (
rel="noopener noreferrer">
<img src={URSSAF} alt="Un service des URSSAF" />
</a>
{inIframe() && (
<a
id="embauche"
href="https://embauche.beta.gouv.fr"
target="_blank"
rel="noopener noreferrer">
<img src={Simulateur} alt="Developpé par embauche.beta.gouv.fr" />
</a>
)}
{inIframe() && <a
id="embauche"
href="https://embauche.beta.gouv.fr"
target="_blank"
rel="noopener noreferrer">
<img src={Simulateur} alt="Developpé par embauche.beta.gouv.fr" />
</a>}
</div>
</div>
)