Add typescript paths to top level folders
[arvados-workbench2.git] / src / views / collection-panel / collection-tag-form.tsx
index 89cf880afab32a28d08d6b935b41f1964c91873c..8f2540412edbbd6318c9716d400e921e6086b9b8 100644 (file)
@@ -5,17 +5,17 @@
 import * as React from 'react';
 import { reduxForm, Field, reset } from 'redux-form';
 import { compose, Dispatch } from 'redux';
-import { ArvadosTheme } from '../../common/custom-theme';
+import { ArvadosTheme } from '~/common/custom-theme';
 import { StyleRulesCallback, withStyles, WithStyles, TextField, Button, CircularProgress } from '@material-ui/core';
-import { TagProperty } from '../../models/tag';
-import { createCollectionTag, COLLECTION_TAG_FORM_NAME } from '../../store/collection-panel/collection-panel-action';
-import { TAG_VALUE_VALIDATION, TAG_KEY_VALIDATION } from '../../validators/validators';
+import { TagProperty } from '~/models/tag';
+import { createCollectionTag, COLLECTION_TAG_FORM_NAME } from '~/store/collection-panel/collection-panel-action';
+import { TAG_VALUE_VALIDATION, TAG_KEY_VALIDATION } from '~/validators/validators';
 
 type CssRules = 'form' | 'textField' | 'buttonWrapper' | 'saveButton' | 'circularProgress';
 
 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     form: {
-        marginBottom: theme.spacing.unit * 4 
+        marginBottom: theme.spacing.unit * 4
     },
     textField: {
         marginRight: theme.spacing.unit
@@ -58,15 +58,15 @@ interface TextFieldProps {
 type CollectionTagFormProps = CollectionTagFormDataProps & CollectionTagFormActionProps & WithStyles<CssRules>;
 
 export const CollectionTagForm = compose(
-    reduxForm({ 
-        form: COLLECTION_TAG_FORM_NAME, 
+    reduxForm({
+        form: COLLECTION_TAG_FORM_NAME,
         onSubmit: (data: TagProperty, dispatch: Dispatch) => {
             dispatch<any>(createCollectionTag(data));
             dispatch(reset(COLLECTION_TAG_FORM_NAME));
-        } 
+        }
     }),
     withStyles(styles))(
-        
+
     class CollectionTagForm extends React.Component<CollectionTagFormProps> {
 
             render() {
@@ -115,4 +115,4 @@ export const CollectionTagForm = compose(
 
         }
 
-    );
\ No newline at end of file
+    );