1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-03 15:32:30 +02:00

27 lines
715 B
JavaScript
Raw Normal View History

2017-05-15 19:46:34 +00:00
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { ListView, Text, TouchableHighlight } from 'react-native';
2017-06-24 19:06:28 +01:00
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 { NoteFolderService } from 'lib/services/note-folder-service.js';
2017-05-15 19:46:34 +00:00
class FolderListComponent extends ItemListComponent {
2017-06-06 20:01:43 +00:00
listView_itemPress(folderId) {
2017-05-24 20:11:37 +00:00
NoteFolderService.openNoteList(folderId);
2017-05-15 19:46:34 +00:00
}
}
const FolderList = connect(
(state) => {
2017-05-15 20:50:14 +00:00
return {
items: state.folders,
};
2017-05-15 19:46:34 +00:00
}
)(FolderListComponent)
export { FolderList };