1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-01 10:59:30 +00:00

refactor: fix some coding style pointed by standard js

This commit is contained in:
sota1235
2017-01-11 23:35:02 +09:00
parent ed9ddee5f1
commit 79f33b9405
24 changed files with 29 additions and 45 deletions

View File

@@ -128,8 +128,8 @@ class FolderSelect extends React.Component {
}
nextOption () {
let { storages } = this.props
let { optionIndex } = this.state
let { folders } = this.props
optionIndex++
if (optionIndex >= folders.length) optionIndex = 0

View File

@@ -205,7 +205,7 @@ class MarkdownNoteDetail extends React.Component {
}
render () {
let { data, config } = this.props
let { config } = this.props
let { note } = this.state
return (

View File

@@ -14,6 +14,7 @@ import SnippetTab from 'browser/components/SnippetTab'
import StatusBar from '../StatusBar'
import context from 'browser/lib/context'
import ConfigManager from 'browser/main/lib/ConfigManager'
import _ from 'lodash'
function pass (name) {
switch (name) {
@@ -459,7 +460,7 @@ class SnippetNoteDetail extends React.Component {
}
render () {
let { data, config } = this.props
let { config } = this.props
let { note } = this.state
let editorFontSize = parseInt(config.editor.fontSize, 10)