mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
Change let to const
This commit is contained in:
@@ -34,8 +34,8 @@ class NewNoteButton extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleNewNoteButtonClick (e) {
|
handleNewNoteButtonClick (e) {
|
||||||
let { config, location, dispatch } = this.props
|
const { config, location, dispatch } = this.props
|
||||||
let { storage, folder } = this.resolveTargetFolder()
|
const { storage, folder } = this.resolveTargetFolder()
|
||||||
|
|
||||||
modal.open(NewNoteModal, {
|
modal.open(NewNoteModal, {
|
||||||
storage: storage.key,
|
storage: storage.key,
|
||||||
@@ -46,7 +46,7 @@ class NewNoteButton extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resolveTargetFolder () {
|
resolveTargetFolder () {
|
||||||
let { data, params } = this.props
|
const { data, params } = this.props
|
||||||
let storage = data.storageMap.get(params.storageKey)
|
let storage = data.storageMap.get(params.storageKey)
|
||||||
|
|
||||||
// Find first storage
|
// Find first storage
|
||||||
@@ -68,7 +68,7 @@ class NewNoteButton extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
let { config, style, data, location } = this.props
|
const { config, style, data, location } = this.props
|
||||||
if (location.pathname === '/trashed') {
|
if (location.pathname === '/trashed') {
|
||||||
return ''
|
return ''
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user