1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Improved app startup

This commit is contained in:
Laurent Cozic
2017-08-01 17:41:58 +00:00
parent 72c4ed8453
commit a270a345d3
2 changed files with 30 additions and 38 deletions

View File

@@ -22,23 +22,15 @@ class WelcomeScreenComponent extends BaseScreenComponent {
}
render() {
if (this.props.loading) {
return (
<View style={{flex: 1}}>
<Text>Loading...</Text>
</View>
);
} else {
let message = this.props.folders.length ? _('Click on the (+) button to create a new note or notebook. Click on the side menu to access your existing notebooks.') : _('You currently have no notebook. Create one by clicking on (+) button.');
let message = this.props.folders.length ? _('Click on the (+) button to create a new note or notebook. Click on the side menu to access your existing notebooks.') : _('You currently have no notebook. Create one by clicking on (+) button.');
return (
<View style={this.styles().screen} >
<ScreenHeader title={_('Welcome')}/>
<Text style={styles.message}>{message}</Text>
<ActionButton addFolderNoteButtons={true}/>
</View>
);
}
return (
<View style={this.styles().screen} >
<ScreenHeader title={_('Welcome')}/>
<Text style={styles.message}>{message}</Text>
<ActionButton addFolderNoteButtons={true}/>
</View>
);
}
}
@@ -46,7 +38,6 @@ class WelcomeScreenComponent extends BaseScreenComponent {
const WelcomeScreen = connect(
(state) => {
return {
loading: state.loading,
folders: state.folders,
};
}