Skip to content

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

fix: running prettier

Ilian Sapundshiev6799fb1ce9ba
diff --git a/app/components/CustomLogo.js b/app/components/CustomLogo.js
index 3aa1c58f9..0c33d5f51 100644
--- a/app/components/CustomLogo.js
+++ b/app/components/CustomLogo.js
@@ -79,7 +79,4 @@ function mapActionCreatorsToProps(dispatch) {
);
}
-export default connect(
- undefined,
- mapActionCreatorsToProps
-)(CustomLogo);
+export default connect(undefined, mapActionCreatorsToProps)(CustomLogo);
diff --git a/app/components/LocationManager.js b/app/components/LocationManager.js
index 1d9063667..8cbde5815 100644
--- a/app/components/LocationManager.js
+++ b/app/components/LocationManager.js
@@ -937,8 +937,5 @@ function mapDispatchToProps(dispatch) {
}
export default withStyles(styles)(
- connect(
- mapStateToProps,
- mapDispatchToProps
- )(LocationManager)
+ connect(mapStateToProps, mapDispatchToProps)(LocationManager)
);
diff --git a/app/components/Search.js b/app/components/Search.js
index 458e298f3..5a1a0a395 100644
--- a/app/components/Search.js
+++ b/app/components/Search.js
@@ -711,8 +711,5 @@ function mapDispatchToProps(dispatch) {
}
export default withStyles(styles)(
- connect(
- mapStateToProps,
- mapDispatchToProps
- )(Search)
+ connect(mapStateToProps, mapDispatchToProps)(Search)
);
diff --git a/app/components/TagLibrary.js b/app/components/TagLibrary.js
index 2f20c7710..93f5ad163 100644
--- a/app/components/TagLibrary.js
+++ b/app/components/TagLibrary.js
@@ -444,8 +444,5 @@ function mapDispatchToProps(dispatch) {
}
export default withStyles(styles)(
- connect(
- mapStateToProps,
- mapDispatchToProps
- )(TagLibrary)
+ connect(mapStateToProps, mapDispatchToProps)(TagLibrary)
);
diff --git a/app/components/TargetFileBox.js b/app/components/TargetFileBox.js
index efc037ff6..abb451b1d 100644
--- a/app/components/TargetFileBox.js
+++ b/app/components/TargetFileBox.js
@@ -79,9 +79,13 @@ const TargetFileBox = (props: Props) => {
};
export default withStyles(styles, { withTheme: true })(
- DropTarget(props => props.accepts, boxTarget, (connect, monitor) => ({
- connectDropTarget: connect.dropTarget(),
- isOver: monitor.isOver(),
- canDrop: monitor.canDrop()
- }))(TargetFileBox)
+ DropTarget(
+ props => props.accepts,
+ boxTarget,
+ (connect, monitor) => ({
+ connectDropTarget: connect.dropTarget(),
+ isOver: monitor.isOver(),
+ canDrop: monitor.canDrop()
+ })
+ )(TargetFileBox)
);
diff --git a/app/components/TargetMoveFileBox.js b/app/components/TargetMoveFileBox.js
index 4086cf491..1c241744f 100644
--- a/app/components/TargetMoveFileBox.js
+++ b/app/components/TargetMoveFileBox.js
@@ -74,9 +74,13 @@ const TargetMoveFileBox = (props: Props) => {
};
export default withStyles(styles, { withTheme: true })(
- DropTarget(props => props.accepts, boxTarget, (connect, monitor) => ({
- connectDropTarget: connect.dropTarget(),
- isOver: monitor.isOver(),
- canDrop: monitor.canDrop()
- }))(TargetMoveFileBox)
+ DropTarget(
+ props => props.accepts,
+ boxTarget,
+ (connect, monitor) => ({
+ connectDropTarget: connect.dropTarget(),
+ isOver: monitor.isOver(),
+ canDrop: monitor.canDrop()
+ })
+ )(TargetMoveFileBox)
);
diff --git a/app/components/dialogs/EditEntryTagDialog.js b/app/components/dialogs/EditEntryTagDialog.js
index 05d7ec423..cb4e23990 100644
--- a/app/components/dialogs/EditEntryTagDialog.js
+++ b/app/components/dialogs/EditEntryTagDialog.js
@@ -215,9 +215,6 @@ function mapDispatchToProps(dispatch) {
export default withMobileDialog()(
withStyles(styles)(
- connect(
- mapStateToProps,
- mapDispatchToProps
- )(EditEntryTagDialog)
+ connect(mapStateToProps, mapDispatchToProps)(EditEntryTagDialog)
)
);
diff --git a/app/components/dialogs/RenameDirectoryDialog.js b/app/components/dialogs/RenameDirectoryDialog.js
index a93040078..9184197a1 100644
--- a/app/components/dialogs/RenameDirectoryDialog.js
+++ b/app/components/dialogs/RenameDirectoryDialog.js
@@ -146,7 +146,4 @@ function mapActionCreatorsToProps(dispatch) {
);
}
-export default connect(
- null,
- mapActionCreatorsToProps
-)(RenameDirectoryDialog);
+export default connect(null, mapActionCreatorsToProps)(RenameDirectoryDialog);
diff --git a/app/components/menus/DirectoryMenu.js b/app/components/menus/DirectoryMenu.js
index 7d8ffa288..81abe246a 100644
--- a/app/components/menus/DirectoryMenu.js
+++ b/app/components/menus/DirectoryMenu.js
@@ -479,7 +479,4 @@ function mapDispatchToProps(dispatch) {
);
}
-export default connect(
- null,
- mapDispatchToProps
-)(DirectoryMenu);
+export default connect(null, mapDispatchToProps)(DirectoryMenu);
diff --git a/app/components/menus/EntryTagMenu.js b/app/components/menus/EntryTagMenu.js
index 62fb7d462..5d30b3e88 100644
--- a/app/components/menus/EntryTagMenu.js
+++ b/app/components/menus/EntryTagMenu.js
@@ -150,7 +150,4 @@ function mapDispatchToProps(dispatch) {
);
}
-export default connect(
- mapStateToProps,
- mapDispatchToProps
-)(EntryTagMenu);
+export default connect(mapStateToProps, mapDispatchToProps)(EntryTagMenu);
diff --git a/app/components/menus/TagMenu.js b/app/components/menus/TagMenu.js
index 431458f85..590e6a0d9 100644
--- a/app/components/menus/TagMenu.js
+++ b/app/components/menus/TagMenu.js
@@ -164,7 +164,4 @@ function mapDispatchToProps(dispatch) {
);
}
-export default connect(
- mapStateToProps,
- mapDispatchToProps
-)(TagLibraryMenu);
+export default connect(mapStateToProps, mapDispatchToProps)(TagLibraryMenu);
diff --git a/app/reducers/settings.js b/app/reducers/settings.js
index c60cfc99d..2672cbced 100644
--- a/app/reducers/settings.js
+++ b/app/reducers/settings.js
@@ -73,13 +73,22 @@ export default (state = defaultSettings, action) => {
switch (action.type) {
case types.UPGRADE_SETTINGS: {
const mergedKeyBindings = defaultSettings.keyBindings.map(x =>
- Object.assign(x, state.keyBindings.find(y => y.name === x.name))
+ Object.assign(
+ x,
+ state.keyBindings.find(y => y.name === x.name)
+ )
);
const mergedFileTypes = defaultSettings.supportedFileTypes.map(x =>
- Object.assign(x, state.supportedFileTypes.find(y => y.type === x.type))
+ Object.assign(
+ x,
+ state.supportedFileTypes.find(y => y.type === x.type)
+ )
);
const combinedFileTypes = state.supportedFileTypes.map(x =>
- Object.assign(x, mergedFileTypes.find(y => y.type === x.type))
+ Object.assign(
+ x,
+ mergedFileTypes.find(y => y.type === x.type)
+ )
);
return {
...defaultSettings,