19045: Improves padding on several places.
[arvados-workbench2.git] / src / views-components / file-remove-dialog / file-remove-dialog.ts
index 832b9ef6327677c15f57620b83590df90e2ea38b..6f03b12b096d927ac62004898b8539159f42524d 100644 (file)
@@ -4,10 +4,10 @@
 
 import { Dispatch } from "redux";
 import { connect } from "react-redux";
-import { ConfirmationDialog } from "../../components/confirmation-dialog/confirmation-dialog";
-import { withDialog, WithDialogProps } from "../../store/dialog/with-dialog";
-import { RootState } from "../../store/store";
-import { removeCollectionFiles, FILE_REMOVE_DIALOG } from "../../store/collection-panel/collection-panel-files/collection-panel-files-actions";
+import { ConfirmationDialog } from "components/confirmation-dialog/confirmation-dialog";
+import { withDialog, WithDialogProps } from 'store/dialog/with-dialog';
+import { RootState } from 'store/store';
+import { removeCollectionFiles, FILE_REMOVE_DIALOG } from 'store/collection-panel/collection-panel-files/collection-panel-files-actions';
 
 const mapStateToProps = (state: RootState, props: WithDialogProps<{ filePath: string }>) => ({
     filePath: props.data.filePath
@@ -28,6 +28,7 @@ const mergeProps = (
         ...props
     });
 
+// TODO: Remove as any
 export const [FileRemoveDialog] = [ConfirmationDialog]
-    .map(connect(mapStateToProps, mapDispatchToProps, mergeProps))
-    .map(withDialog(FILE_REMOVE_DIALOG));
\ No newline at end of file
+    .map(connect(mapStateToProps, mapDispatchToProps, mergeProps) as any)
+    .map(withDialog(FILE_REMOVE_DIALOG));