From 83e9d04ba5688b1e094e918c14d9dfa9061d192d Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Tue, 15 Mar 2016 08:05:40 -0600 Subject: [PATCH] Remove navItems and navigation related functionality This functionality is now in reducers/navigation which makes the code cleaner. --- app/components/LibraryNav.jsx | 70 ----------------------------------- 1 file changed, 70 deletions(-) diff --git a/app/components/LibraryNav.jsx b/app/components/LibraryNav.jsx index 6fabe5b..1916772 100644 --- a/app/components/LibraryNav.jsx +++ b/app/components/LibraryNav.jsx @@ -51,83 +51,13 @@ export default class LibraryNav extends React.Component { this.state = { open: true, } - this.navItems = [ - { - 'name': 'Entries', - 'isNotebook': true, - 'icon': , - 'clicked': this.props.entriesTapped || this.entriesTapped - }, - { - 'name': 'Starred', - 'notes': 0, - 'icon': , - 'clicked': this.props.starredTapped || this.starredTapped - }, - { - 'name': 'Recents', - 'notes': 0, - 'icon': , - 'clicked': this.props.recentsTapped || this.recentsTapped - }, - { - 'name': 'Trash', - 'isNotebook': true, - 'icon': , - 'clicked': this.props.trashTapped || this.trashTapped - }, - { - 'name': 'All Notes', - 'notes': 0, - 'glob': '*.qvnotebook/*.qvnote', - 'icon': , - 'clicked': this.props.allNotesTapped || this.allNotesTapped - } - ] - - this.loadDefaultNotebooks() this.getNotebooks() const { store } = this.context store.subscribe(this.stateChanged) } - loadDefaultNotebooks = () => { - var notebooks = this.navItems - for(var i=0; i { var dataPath = utils.getAppDataPath() var notebooks = glob.sync(path.join(dataPath, '!(Entries|Trash).qvnotebook'))