mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
reworking architecture of code
This commit is contained in:
@@ -30,10 +30,7 @@ class MarkdownNoteDetail extends React.Component {
|
||||
content: ''
|
||||
}, props.note),
|
||||
isLockButtonShown: false,
|
||||
isLocked: false,
|
||||
fullScreen: false,
|
||||
widthOfNoteDetail: 0,
|
||||
widthOfMainBody: 0
|
||||
isLocked: false
|
||||
}
|
||||
this.dispatchTimer = null
|
||||
|
||||
|
||||
@@ -48,10 +48,7 @@ class SnippetNoteDetail extends React.Component {
|
||||
description: ''
|
||||
}, props.note, {
|
||||
snippets: props.note.snippets.map((snippet) => Object.assign({}, snippet))
|
||||
}),
|
||||
fullScreen: false,
|
||||
widthOfNoteDetail: 0,
|
||||
widthOfMainBody: 0
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class Main extends React.Component {
|
||||
}
|
||||
|
||||
this.toggleFullScreen = () => this.handleFullScreenButton()
|
||||
|
||||
}
|
||||
|
||||
getChildContext () {
|
||||
|
||||
Reference in New Issue
Block a user