[DE] cleaned up code
This commit is contained in:
parent
24d95468e3
commit
2b770c5547
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import {App,Panel,Views,View,Popup,Page,Navbar,Toolbar,NavRight,Link,Block,BlockTitle,LoginScreen,LoginScreenTitle,List,ListItem,ListInput,ListButton,BlockFooter} from 'framework7-react';
|
import {App,Panel,Views,View,Popup,Page,Navbar,Toolbar,NavRight,Link,Block,BlockTitle,List,ListItem,ListInput,ListButton,BlockFooter} from 'framework7-react';
|
||||||
|
|
||||||
import routes from '../js/routes';
|
import routes from '../js/routes';
|
||||||
|
|
||||||
|
@ -19,14 +19,9 @@ export default class extends React.Component {
|
||||||
name: 'Desktop Editor', // App name
|
name: 'Desktop Editor', // App name
|
||||||
theme: 'auto', // Automatic theme detection
|
theme: 'auto', // Automatic theme detection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// App routes
|
// App routes
|
||||||
routes: routes,
|
routes: routes,
|
||||||
},
|
},
|
||||||
// Login screen demo data
|
|
||||||
username: '',
|
|
||||||
password: '',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Common.Notifications = new Notifications();
|
Common.Notifications = new Notifications();
|
||||||
|
@ -83,11 +78,7 @@ export default class extends React.Component {
|
||||||
</App>
|
</App>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
alertLoginData() {
|
|
||||||
this.$f7.dialog.alert('Username: ' + this.state.username + '<br>Password: ' + this.state.password, () => {
|
|
||||||
this.$f7.loginScreen.close();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.$f7ready((f7) => {
|
this.$f7ready((f7) => {
|
||||||
// Call F7 APIs here
|
// Call F7 APIs here
|
||||||
|
|
Loading…
Reference in a new issue