remove stuff
This commit is contained in:
		
							parent
							
								
									b44d858fe6
								
							
						
					
					
						commit
						1d8e33d189
					
				| @ -54,17 +54,11 @@ class Home extends Component { | |||||||
|       key: "", |       key: "", | ||||||
|       message: "", |       message: "", | ||||||
|       open: true, |       open: true, | ||||||
|       resumeWork: false, |  | ||||||
|       initialXml: localStorage.getItem("autoSaveXML"), |       initialXml: localStorage.getItem("autoSaveXML"), | ||||||
|     }; |     }; | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   componentDidMount() { |   componentDidMount() { | ||||||
|     if (this.state.initialXml) { |  | ||||||
|       this.setState({ resumeWork: true }); |  | ||||||
|     } else { |  | ||||||
|       console.log("new work"); |  | ||||||
|     } |  | ||||||
|     if (this.props.platform === true) { |     if (this.props.platform === true) { | ||||||
|       this.setState({ codeOn: false }); |       this.setState({ codeOn: false }); | ||||||
|     } |     } | ||||||
| @ -100,10 +94,6 @@ class Home extends Component { | |||||||
|     this.setState({ open: !this.state }); |     this.setState({ open: !this.state }); | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   toogleResumeWork = () => { |  | ||||||
|     this.setState({ resumeWork: !this.state.resumeWork }); |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   onChangeCheckbox = (e) => { |   onChangeCheckbox = (e) => { | ||||||
|     if (e.target.checked) { |     if (e.target.checked) { | ||||||
|       window.localStorage.setItem("ota", e.target.checked); |       window.localStorage.setItem("ota", e.target.checked); | ||||||
| @ -197,25 +187,6 @@ class Home extends Component { | |||||||
|           ) : null} |           ) : null} | ||||||
|         </Grid> |         </Grid> | ||||||
|         <HintTutorialExists /> |         <HintTutorialExists /> | ||||||
|         <Dialog |  | ||||||
|           style={{ zIndex: 9999999 }} |  | ||||||
|           fullWidth |  | ||||||
|           maxWidth={"sm"} |  | ||||||
|           open={this.state.resumeWork} |  | ||||||
|           title={Blockly.Msg.tabletDialog_headline} |  | ||||||
|           content={""} |  | ||||||
|           onClose={this.toogleResumeWork} |  | ||||||
|           onClick={this.toogleResumeWork} |  | ||||||
|           button={Blockly.Msg.button_close} |  | ||||||
|         > |  | ||||||
|           <div>{Blockly.Msg.tabletDialog_text}</div> |  | ||||||
|           <div> |  | ||||||
|             {Blockly.Msg.tabletDialog_more}{" "} |  | ||||||
|             <a href="https://sensebox.de/app" target="_blank" rel="noreferrer"> |  | ||||||
|               https://sensebox.de/app
 |  | ||||||
|             </a> |  | ||||||
|           </div> |  | ||||||
|         </Dialog> |  | ||||||
|         {this.props.platform ? ( |         {this.props.platform ? ( | ||||||
|           <Dialog |           <Dialog | ||||||
|             style={{ zIndex: 9999999 }} |             style={{ zIndex: 9999999 }} | ||||||
|  | |||||||
| @ -232,17 +232,17 @@ class Navbar extends Component { | |||||||
|                 icon: faLightbulb, |                 icon: faLightbulb, | ||||||
|                 link: "/gallery", |                 link: "/gallery", | ||||||
|               }, |               }, | ||||||
|               { |  | ||||||
|                 text: "CodeEditor", |  | ||||||
|                 icon: faCode, |  | ||||||
|                 link: "/codeeditor", |  | ||||||
|               }, |  | ||||||
|               { |               { | ||||||
|                 text: Blockly.Msg.navbar_projects, |                 text: Blockly.Msg.navbar_projects, | ||||||
|                 icon: faLayerGroup, |                 icon: faLayerGroup, | ||||||
|                 link: "/project", |                 link: "/project", | ||||||
|                 restriction: this.props.isAuthenticated, |                 restriction: this.props.isAuthenticated, | ||||||
|               }, |               }, | ||||||
|  |               { | ||||||
|  |                 text: "Code Editor", | ||||||
|  |                 icon: faCode, | ||||||
|  |                 link: "/codeeditor", | ||||||
|  |               }, | ||||||
|             ].map((item, index) => { |             ].map((item, index) => { | ||||||
|               if ( |               if ( | ||||||
|                 item.restriction || |                 item.restriction || | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user