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