From 8311030bec29507f6a4aa836a69d5c03af21e827 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sat, 30 Sep 2017 14:23:45 +0900 Subject: [PATCH] add the tag to routing --- browser/main/SideNav/index.js | 16 ++++++++++++++++ browser/main/TopBar/.#index.js | 1 + browser/main/index.js | 1 + 3 files changed, 18 insertions(+) create mode 120000 browser/main/TopBar/.#index.js diff --git a/browser/main/SideNav/index.js b/browser/main/SideNav/index.js index 909c6777..e7976011 100644 --- a/browser/main/SideNav/index.js +++ b/browser/main/SideNav/index.js @@ -38,6 +38,18 @@ class SideNav extends React.Component { router.push('/trashed') } + handleSwitchFolderButtonClick (e) { + console.log('SwitchfolderButton Clicked') + let { router } = this.context + router.push('/home') + } + + handleSwitchTagButtonClick (e) { + console.log('SwitchTagButton clicked') + let { router } = this.context + router.push('/tag') + } + render () { let { data, location, config, dispatch } = this.props @@ -64,6 +76,10 @@ class SideNav extends React.Component { tabIndex='1' style={style} > +
+ + +