diff --git a/apps/documenteditor/mobile/src/components/app.jsx b/apps/documenteditor/mobile/src/components/app.jsx index e3fe2a629..c91b4b6e9 100644 --- a/apps/documenteditor/mobile/src/components/app.jsx +++ b/apps/documenteditor/mobile/src/components/app.jsx @@ -1,6 +1,6 @@ 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'; @@ -19,14 +19,9 @@ export default class extends React.Component { name: 'Desktop Editor', // App name theme: 'auto', // Automatic theme detection - - // App routes routes: routes, }, - // Login screen demo data - username: '', - password: '', } Common.Notifications = new Notifications(); @@ -83,11 +78,7 @@ export default class extends React.Component { ) } - alertLoginData() { - this.$f7.dialog.alert('Username: ' + this.state.username + '
Password: ' + this.state.password, () => { - this.$f7.loginScreen.close(); - }); - } + componentDidMount() { this.$f7ready((f7) => { // Call F7 APIs here