mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
Move variable declaration before its first use. (#2109)
* Move variable declaration before its first use. * Remove trailing whitespace
This commit is contained in:
parent
e84bafd034
commit
76c8f777ca
@ -207,6 +207,7 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
rootStyle.flex = 0.001; // This is a bit of a hack but it seems to work fine - it makes the component invisible but without unmounting it
|
||||
}
|
||||
|
||||
let title = parent ? parent.title : null;
|
||||
if (!parent) {
|
||||
return (
|
||||
<View style={rootStyle}>
|
||||
@ -215,7 +216,6 @@ class NotesScreenComponent extends BaseScreenComponent {
|
||||
);
|
||||
}
|
||||
|
||||
let title = parent ? parent.title : null;
|
||||
const addFolderNoteButtons = this.props.selectedFolderId && this.props.selectedFolderId != Folder.conflictFolderId();
|
||||
const thisComp = this;
|
||||
const actionButtonComp = this.props.noteSelectionEnabled || !this.props.visible ? null : <ActionButton addFolderNoteButtons={addFolderNoteButtons} parentFolderId={this.props.selectedFolderId}></ActionButton>;
|
||||
|
Loading…
Reference in New Issue
Block a user