hide tour on various pages
This commit is contained in:
		
							parent
							
								
									8504dacc38
								
							
						
					
					
						commit
						127c9551a0
					
				| @ -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,6 +97,8 @@ class Navbar extends Component { | ||||
|                   Tutorial | ||||
|                 </Typography> | ||||
|               </Link> : null} | ||||
|             {/^\/(\/.*$|$)/g.test(this.props.location.pathname) ? | ||||
|               <Tooltip title='Hilfe starten' arrow> | ||||
|                 <IconButton | ||||
|                   color="inherit" | ||||
|                   className={`openTour ${this.props.classes.button}`} | ||||
| @ -104,6 +107,7 @@ class Navbar extends Component { | ||||
|                 > | ||||
|                   <FontAwesomeIcon icon={faQuestionCircle} size="s" /> | ||||
|                 </IconButton> | ||||
|               </Tooltip> : null} | ||||
|             <Tour | ||||
|               steps={steps.steps} | ||||
|               isOpen={this.state.isTourOpen} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user