You've already forked joplin
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:
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user