1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36: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) {
let { router } = this.context
const { router } = this.context
router.push('/home')
}
handleSwitchTagsButtonClick (e) {
let { router } = this.context
const { router } = this.context
router.push('/alltags')
}
@@ -113,7 +113,7 @@ class SideNav extends React.Component {
}
handleClickTagListItem (e, name) {
let { router } = this.context
const { router } = this.context
router.push(`/tags/${name}`)
}