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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ class Main extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.toggleFullScreen = () => this.handleFullScreenButton()
|
this.toggleFullScreen = () => this.handleFullScreenButton()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildContext () {
|
getChildContext () {
|
||||||
|
|||||||
Reference in New Issue
Block a user