1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-06-25 15:53:56 +00:00

modify to use "const" from "let"

This commit is contained in:
Sosuke Suzuki
2017-10-07 03:04:30 +09:00
parent e8abd43c8a
commit ad7a3c49f9
+3 -3
View File
@@ -40,12 +40,12 @@ class SideNav extends React.Component {
} }
handleSwitchFoldersButtonClick (e) { handleSwitchFoldersButtonClick (e) {
let { router } = this.context const { router } = this.context
router.push('/home') router.push('/home')
} }
handleSwitchTagsButtonClick (e) { handleSwitchTagsButtonClick (e) {
let { router } = this.context const { router } = this.context
router.push('/alltags') router.push('/alltags')
} }
@@ -113,7 +113,7 @@ class SideNav extends React.Component {
} }
handleClickTagListItem (e, name) { handleClickTagListItem (e, name) {
let { router } = this.context const { router } = this.context
router.push(`/tags/${name}`) router.push(`/tags/${name}`)
} }