X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b4adbf55b9a1950d70e2e44c28efb13eb4d0f077..de3b8d1fa96ec9a5d28b05dade868abf8132904b:/src/components/form-dialog/form-dialog.tsx diff --git a/src/components/form-dialog/form-dialog.tsx b/src/components/form-dialog/form-dialog.tsx index 150dc4b6..6970a38a 100644 --- a/src/components/form-dialog/form-dialog.tsx +++ b/src/components/form-dialog/form-dialog.tsx @@ -16,41 +16,46 @@ const styles: StyleRulesCallback = theme => ({ }, lastButton: { marginLeft: theme.spacing.unit, - marginRight: "20px", + marginRight: "0", }, formContainer: { display: "flex", flexDirection: "column", - marginTop: "20px", + paddingBottom: "0", }, dialogTitle: { - paddingBottom: "0" + paddingTop: theme.spacing.unit, + paddingBottom: theme.spacing.unit, }, progressIndicator: { position: "absolute", minWidth: "20px", }, dialogActions: { - marginBottom: "24px" + marginBottom: theme.spacing.unit, + marginRight: theme.spacing.unit * 3, } }); -interface DialogProjectProps { +interface DialogProjectDataProps { cancelLabel?: string; dialogTitle: string; formFields: React.ComponentType & WithDialogProps>; submitLabel?: string; + enableWhenPristine?: boolean; } -export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDialogProps<{}> & InjectedFormProps & WithStyles) => +type DialogProjectProps = DialogProjectDataProps & WithDialogProps<{}> & InjectedFormProps & WithStyles; + +export const FormDialog = withStyles(styles)((props: DialogProjectProps) => -
+ maxWidth='md'> + {props.dialogTitle} @@ -59,6 +64,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDi
); - -