From 127c9551a0729130fc3a5d80957533508b420177 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 15 Dec 2020 15:19:06 +0100 Subject: [PATCH] hide tour on various pages --- src/components/Navbar.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/Navbar.js b/src/components/Navbar.js index 1010e30..272c3ad 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -25,6 +25,7 @@ import * as steps from './Tour'; import { faBars, faChevronLeft, faLayerGroup, faSignInAlt, faSignOutAlt, faCertificate, faUserCircle, faQuestionCircle, faCog, faChalkboardTeacher, faTools, faLightbulb } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import * as Blockly from 'blockly' +import Tooltip from '@material-ui/core/Tooltip'; const styles = (theme) => ({ @@ -96,14 +97,17 @@ class Navbar extends Component { Tutorial : null} - { this.openTour(); }} - style={{ margin: '0 30px 0 auto' }} - > - - + {/^\/(\/.*$|$)/g.test(this.props.location.pathname) ? + + { this.openTour(); }} + style={{ margin: '0 30px 0 auto' }} + > + + + : null}