1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Change let to const

This commit is contained in:
asmsuechan
2017-08-14 09:48:18 +09:00
parent 169e30e029
commit 105119e1a4

View File

@@ -34,8 +34,8 @@ class NewNoteButton extends React.Component {
}
handleNewNoteButtonClick (e) {
let { config, location, dispatch } = this.props
let { storage, folder } = this.resolveTargetFolder()
const { config, location, dispatch } = this.props
const { storage, folder } = this.resolveTargetFolder()
modal.open(NewNoteModal, {
storage: storage.key,
@@ -46,7 +46,7 @@ class NewNoteButton extends React.Component {
}
resolveTargetFolder () {
let { data, params } = this.props
const { data, params } = this.props
let storage = data.storageMap.get(params.storageKey)
// Find first storage
@@ -68,7 +68,7 @@ class NewNoteButton extends React.Component {
}
render () {
let { config, style, data, location } = this.props
const { config, style, data, location } = this.props
if (location.pathname === '/trashed') {
return ''
} else {