From 467f289970c1aad23d68bbaf7b138d2b634bbcf6 Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 30 Apr 2018 15:10:01 +0200 Subject: [PATCH] :art: Le menu est maintenant visible tout le temps En mode iFrame, le logo est remplace par le mode plein ecran --- source/components/pages/Header.js | 56 +++++++++++++------------------ source/locales/en.yaml | 2 +- 2 files changed, 24 insertions(+), 34 deletions(-) diff --git a/source/components/pages/Header.js b/source/components/pages/Header.js index 77119ca91..010bad0ad 100644 --- a/source/components/pages/Header.js +++ b/source/components/pages/Header.js @@ -22,41 +22,31 @@ export class Header extends Component { this.setState({ mobileNavVisible: !this.state.mobileNavVisible }) render() { - let { location } = this.props - let appMode = ['/simu', '/règle'].find(t => location.pathname.includes(t)) - if (this.props.iframe) - return screenfull.enabled ? ( -
screenfull.toggle()} - className={appMode ? 'absolute' : ''}> - {!appMode && ( - - Mode plein écran - - )} -