refs #14007 Merge branch 'origin/14007-ts-paths'
[arvados.git] / src / views-components / dialog-create / dialog-collection-create.tsx
index 0686904ab3403aba2a60ae1f5599a129acbeb77d..7f2e411ed08f525ab94e8bf8b3d94b84e541142a 100644 (file)
@@ -5,15 +5,15 @@
 import * as React from 'react';
 import { reduxForm, Field } from 'redux-form';
 import { compose } from 'redux';
-import { TextField } from '../../components/text-field/text-field';
+import { TextField } from '~/components/text-field/text-field';
 import { Dialog, DialogActions, DialogContent, DialogTitle } from '@material-ui/core/';
 import { Button, StyleRulesCallback, WithStyles, withStyles, CircularProgress } from '@material-ui/core';
 
-import { COLLECTION_NAME_VALIDATION, COLLECTION_DESCRIPTION_VALIDATION } from '../../validators/create-collection/create-collection-validator';
-import { FileUpload } from "../../components/file-upload/file-upload";
+import { COLLECTION_NAME_VALIDATION, COLLECTION_DESCRIPTION_VALIDATION } from '~/validators/create-collection/create-collection-validator';
+import { FileUpload } from "~/components/file-upload/file-upload";
 import { connect, DispatchProp } from "react-redux";
-import { RootState } from "../../store/store";
-import { collectionUploaderActions, UploadFile } from "../../store/collections/uploader/collection-uploader-actions";
+import { RootState } from "~/store/store";
+import { collectionUploaderActions, UploadFile } from "~/store/collections/uploader/collection-uploader-actions";
 
 type CssRules = "button" | "lastButton" | "formContainer" | "textField" | "createProgress" | "dialogActions";
 
@@ -53,11 +53,13 @@ interface DialogCollectionCreateProps {
     files: UploadFile[];
 }
 
+export const COLLECTION_CREATE_DIALOG = "collectionCreateDialog";
+
 export const DialogCollectionCreate = compose(
     connect((state: RootState) => ({
         files: state.collections.uploader
     })),
-    reduxForm({ form: 'collectionCreateDialog' }),
+    reduxForm({ form: COLLECTION_CREATE_DIALOG }),
     withStyles(styles))(
         class DialogCollectionCreate extends React.Component<DialogCollectionCreateProps & DispatchProp & WithStyles<CssRules>> {
             render() {