1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-02-04 19:16:07 +02:00

35 lines
972 B
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-05-15 19:46:34 +00:00
class FoldersScreenComponent extends React.Component {
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 (
<View style={{flex: 1}}>
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-05-16 21:05:53 +00:00
<ActionButton></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 };