X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/c1787278642d2ef02234ea27f94aaae9cdd52d40..45ee419ff7952fc722a139666c327a321a92cc81:/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 dee89249..e95693df 100644 --- a/src/components/form-dialog/form-dialog.tsx +++ b/src/components/form-dialog/form-dialog.tsx @@ -31,24 +31,27 @@ const styles: StyleRulesCallback = theme => ({ minWidth: "20px", }, dialogActions: { - marginBottom: "24px" + marginBottom: theme.spacing.unit * 3 } }); -interface DialogProjectProps { +interface DialogProjectDataProps { cancelLabel?: string; dialogTitle: string; formFields: React.ComponentType & WithDialogProps>; submitLabel?: string; } -export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDialogProps<{}> & InjectedFormProps & WithStyles) => +type DialogProjectProps = DialogProjectDataProps & WithDialogProps<{}> & InjectedFormProps & WithStyles; + +export const FormDialog = withStyles(styles)((props: DialogProjectProps) => + fullWidth + maxWidth='md'>
{props.dialogTitle} @@ -65,6 +68,7 @@ export const FormDialog = withStyles(styles)((props: DialogProjectProps & WithDi {props.cancelLabel || 'Cancel'}