Enlève le header lorsque le simulateur est intégré via une iframe

pull/319/head
Johan Girod 2018-08-29 14:16:16 +02:00
parent c46f689e36
commit 012d7bf6b5
1 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ import {
persistSimulation,
retrievePersistedSimulation
} from '../../storage/persistSimulation'
import { inIframe } from '../../utils'
import About from './pages/About'
import Contact from './pages/Contact'
import Contribution from './pages/Contribution'
@ -30,7 +31,7 @@ class EmbaucheRoute extends Component {
}}
onStoreCreated={persistSimulation}>
<TrackPageView />
<Header />
{!inIframe() && <Header />}
<Switch>
<Route exact path="/" component={Home} />
<Route path="/contact" component={Contact} />