[ARVADOS-WORKBENCH2] updated: 1.1.4-363-g99e5151
Git user
git at public.curoverse.com
Mon Jul 23 09:36:06 EDT 2018
Summary of changes:
.../dialog-create/dialog-project-create.tsx | 119 +++++++++++----------
1 file changed, 60 insertions(+), 59 deletions(-)
via 99e5151440dd831a295313f4f2e86da5922806f7 (commit)
from 35df2cdddc36985bdca21547d7c12332ea032b1c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 99e5151440dd831a295313f4f2e86da5922806f7
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Mon Jul 23 15:31:01 2018 +0200
Remove default export
Feature #13781
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/views-components/dialog-create/dialog-project-create.tsx b/src/views-components/dialog-create/dialog-project-create.tsx
index 8c690c0..e11c67a 100644
--- a/src/views-components/dialog-create/dialog-project-create.tsx
+++ b/src/views-components/dialog-create/dialog-project-create.tsx
@@ -64,64 +64,65 @@ interface TextFieldProps {
meta?: any;
}
-class DialogProjectCreate extends React.Component<DialogProjectProps & WithStyles<CssRules>> {
- render() {
- const { classes, open, handleClose, handleSubmit, onSubmit, submitting } = this.props;
-
- return (
- <Dialog
- open={open}
- onClose={handleClose}
- disableBackdropClick={true}
- disableEscapeKeyDown={true}>
- <div className={classes.dialog}>
- <form onSubmit={handleSubmit((data: any) => onSubmit(data))}>
- <DialogTitle id="form-dialog-title" className={classes.dialogTitle}>Create a project</DialogTitle>
- <DialogContent className={classes.formContainer}>
- <Field name="name"
- component={this.renderTextField}
- floatinglabeltext="Project Name"
- validate={NAME}
- className={classes.textField}
- label="Project Name" />
- <Field name="description"
- component={this.renderTextField}
- floatinglabeltext="Description - optional"
- validate={DESCRIPTION}
- className={classes.textField}
- label="Description - optional" />
- </DialogContent>
- <DialogActions className={classes.dialogActions}>
- <Button onClick={handleClose} className={classes.button} color="primary" disabled={submitting}>CANCEL</Button>
- <Button type="submit"
- className={classes.lastButton}
- color="primary"
- disabled={submitting}
- variant="contained">
- CREATE A PROJECT
- </Button>
- {submitting && <CircularProgress size={20} className={classes.createProgress} />}
- </DialogActions>
- </form>
- </div>
- </Dialog>
- );
- }
+export const DialogProjectCreate = compose(
+ reduxForm({ form: 'projectCreateDialog' }),
+ withStyles(styles))(
+ class DialogProjectCreate extends React.Component<DialogProjectProps & WithStyles<CssRules>> {
+ render() {
+ const { classes, open, handleClose, handleSubmit, onSubmit, submitting } = this.props;
- renderTextField = ({ input, label, meta: { touched, error }, ...custom }: TextFieldProps) => (
- <TextField
- helperText={touched && error}
- label={label}
- className={this.props.classes.textField}
- error={touched && !!error}
- autoComplete='off'
- {...input}
- {...custom}
- />
- )
-}
+ return (
+ <Dialog
+ open={open}
+ onClose={handleClose}
+ disableBackdropClick={true}
+ disableEscapeKeyDown={true}>
+ <div className={classes.dialog}>
+ <form onSubmit={handleSubmit((data: any) => onSubmit(data))}>
+ <DialogTitle id="form-dialog-title" className={classes.dialogTitle}>Create a
+ project</DialogTitle>
+ <DialogContent className={classes.formContainer}>
+ <Field name="name"
+ component={this.renderTextField}
+ floatinglabeltext="Project Name"
+ validate={NAME}
+ className={classes.textField}
+ label="Project Name"/>
+ <Field name="description"
+ component={this.renderTextField}
+ floatinglabeltext="Description - optional"
+ validate={DESCRIPTION}
+ className={classes.textField}
+ label="Description - optional"/>
+ </DialogContent>
+ <DialogActions className={classes.dialogActions}>
+ <Button onClick={handleClose} className={classes.button} color="primary"
+ disabled={submitting}>CANCEL</Button>
+ <Button type="submit"
+ className={classes.lastButton}
+ color="primary"
+ disabled={submitting}
+ variant="contained">
+ CREATE A PROJECT
+ </Button>
+ {submitting && <CircularProgress size={20} className={classes.createProgress}/>}
+ </DialogActions>
+ </form>
+ </div>
+ </Dialog>
+ );
+ }
-export default compose(
- reduxForm({ form: 'projectCreateDialog' }),
- withStyles(styles)
-)(DialogProjectCreate);
+ renderTextField = ({ input, label, meta: { touched, error }, ...custom }: TextFieldProps) => (
+ <TextField
+ helperText={touched && error}
+ label={label}
+ className={this.props.classes.textField}
+ error={touched && !!error}
+ autoComplete='off'
+ {...input}
+ {...custom}
+ />
+ )
+ }
+);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list