1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 18:56:22 +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

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}`)
} }