X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f63f3a5360ae6381d4b332bf86ef52b4e22107fb..e9d30481d8d57a0b906364ee115e136305b7ce79:/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..40050b76 100644 --- a/src/components/form-dialog/form-dialog.tsx +++ b/src/components/form-dialog/form-dialog.tsx @@ -31,18 +31,20 @@ 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) =>