1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

reworking architecture of code

This commit is contained in:
Kevin Nadro
2017-05-29 00:30:41 -05:00
committed by asmsuechan
parent cd421c4662
commit 41a04aa3f1
3 changed files with 3 additions and 8 deletions

View File

@@ -30,10 +30,7 @@ class MarkdownNoteDetail extends React.Component {
content: '' content: ''
}, props.note), }, props.note),
isLockButtonShown: false, isLockButtonShown: false,
isLocked: false, isLocked: false
fullScreen: false,
widthOfNoteDetail: 0,
widthOfMainBody: 0
} }
this.dispatchTimer = null this.dispatchTimer = null

View File

@@ -48,10 +48,7 @@ class SnippetNoteDetail extends React.Component {
description: '' description: ''
}, props.note, { }, props.note, {
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet)) snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
}), })
fullScreen: false,
widthOfNoteDetail: 0,
widthOfMainBody: 0
} }
} }

View File

@@ -38,6 +38,7 @@ class Main extends React.Component {
} }
this.toggleFullScreen = () => this.handleFullScreenButton() this.toggleFullScreen = () => this.handleFullScreenButton()
} }
getChildContext () { getChildContext () {