1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/ReactNativeClient/lib/components/screens/folders.js
2017-07-14 18:49:14 +00:00

36 lines
1.1 KiB
JavaScript

import React, { Component } from 'react';
import { View, Button, Picker, Text, StyleSheet } from 'react-native';
import { connect } from 'react-redux'
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';
import { BaseScreenComponent } from 'lib/components/base-screen.js';
class FoldersScreenComponent extends BaseScreenComponent {
static navigationOptions(options) {
return { header: null };
}
render() {
return (
<View style={this.styles().screen}>
<ScreenHeader navState={this.props.navigation.state} />
<FolderList noItemMessage={_('There is currently no notebook. Create one by clicking on the (+) button.')} style={{flex: 1}}/>
<ActionButton addFolderNoteButtons={true}></ActionButton>
</View>
);
}
}
const FoldersScreen = connect(
(state) => {
return {
folders: state.folders,
};
}
)(FoldersScreenComponent)
export { FoldersScreen };