mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-30 08:26:59 +02:00
27 lines
714 B
JavaScript
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 }; |