Skip to content

TagSpaces is an offline, open source, document manager with tagging support

cleaning up js code

Ilian Sapundshiev9d4ca9819f75
diff --git a/app/components/TagContainerDnd.js b/app/components/TagContainerDnd.js
index 1cfcbf516..54202ab12 100644
--- a/app/components/TagContainerDnd.js
+++ b/app/components/TagContainerDnd.js
@@ -103,11 +103,12 @@ class TagContainerDnd extends React.Component<Props> {
tagGroup,
entryPath,
handleTagMenu,
- deleteIcon
+ deleteIcon,
+ isDragging,
+ connectDragSource,
+ tagMode
} = this.props;
- const { isDragging, connectDragSource, tagMode } = this.props;
- // return connectDragPreview(<span>{
return connectDragSource(
<span>
<TagContainer
@@ -121,8 +122,6 @@ class TagContainerDnd extends React.Component<Props> {
isDragging={isDragging}
/>
</span>);
- // , { dropEffect: 'copy' });
- // }</span>, { anchorX: 0, anchorY: 0 });
}
}
diff --git a/app/components/dialogs/EditLocationDialog.js b/app/components/dialogs/EditLocationDialog.js
index 11f9108c0..c2ec546cf 100644
--- a/app/components/dialogs/EditLocationDialog.js
+++ b/app/components/dialogs/EditLocationDialog.js
@@ -52,19 +52,19 @@ type Props = {
};
type State = {
- errorTextPath?: boolean,
- errorTextName?: boolean,
- disableConfirmButton?: boolean,
+ errorTextPath: boolean,
+ errorTextName: boolean,
+ disableConfirmButton: boolean,
// openDirectoryButtonDisabled?: boolean,
- uuid?: string,
- name?: string,
- path?: string,
- perspective?: '',
- isDefault?: boolean,
- isReadOnly?: boolean,
- watchForChanges?: boolean,
- fullTextIndex?: boolean,
- persistIndex?: boolean
+ uuid: string,
+ name: string,
+ path: string,
+ perspective: '',
+ isDefault: boolean,
+ isReadOnly: boolean,
+ watchForChanges: boolean,
+ fullTextIndex: boolean,
+ persistIndex: boolean
};
class EditLocationDialog extends React.Component<Props, State> {