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:
@@ -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}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user