1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-29 19:13:59 +02:00

36 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-05-15 19:46:34 +00:00
import React, { Component } from 'react';
2017-05-16 21:05:53 +00:00
import { View, Button, Picker, Text, StyleSheet } from 'react-native';
2017-05-15 19:46:34 +00:00
import { connect } from 'react-redux'
2017-06-24 19:06:28 +01:00
import { Log } from 'lib/log.js'
import { FolderList } from 'lib/components/folder-list.js'
import { ScreenHeader } from 'lib/components/screen-header.js';
import { _ } from 'lib/locale.js';
import { ActionButton } from 'lib/components/action-button.js';
2017-07-14 18:49:14 +00:00
import { BaseScreenComponent } from 'lib/components/base-screen.js';
2017-05-15 19:46:34 +00:00
2017-07-14 18:49:14 +00:00
class FoldersScreenComponent extends BaseScreenComponent {
2017-05-16 19:57:09 +00:00
2017-06-06 20:01:43 +00:00
static navigationOptions(options) {
2017-05-16 19:57:09 +00:00
return { header: null };
2017-05-15 20:50:14 +00:00
}
2017-05-15 19:46:34 +00:00
render() {
return (
2017-07-14 18:49:14 +00:00
<View style={this.styles().screen}>
2017-05-16 19:57:09 +00:00
<ScreenHeader navState={this.props.navigation.state} />
2017-07-08 00:25:10 +01:00
<FolderList noItemMessage={_('There is currently no notebook. Create one by clicking on the (+) button.')} style={{flex: 1}}/>
2017-07-14 00:35:37 +01:00
<ActionButton addFolderNoteButtons={true}></ActionButton>
2017-05-15 19:46:34 +00:00
</View>
);
}
}
const FoldersScreen = connect(
(state) => {
return {
2017-05-15 20:50:14 +00:00
folders: state.folders,
2017-05-15 19:46:34 +00:00
};
}
)(FoldersScreenComponent)
export { FoldersScreen };