1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00
joplin/ReactNativeClient/lib/components/folder-list.js
2017-07-05 22:29:00 +01:00

27 lines
714 B
JavaScript

import React, { Component } from 'react';
import { connect } from 'react-redux'
import { ListView, Text, TouchableHighlight } from 'react-native';
import { Log } from 'lib/log.js';
import { ItemListComponent } from 'lib/components/item-list.js';
import { Note } from 'lib/models/note.js';
import { Folder } from 'lib/models/folder.js';
import { _ } from 'lib/locale.js';
import { NotesScreenUtils } from 'lib/components/screens/notes-utils.js'
class FolderListComponent extends ItemListComponent {
listView_itemPress(folderId) {
NotesScreenUtils.openNoteList(folderId);
}
}
const FolderList = connect(
(state) => {
return {
items: state.folders,
};
}
)(FolderListComponent)
export { FolderList };