webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhookCreateModal.js in foreman_webhooks-3.0.4 vs webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhookCreateModal.js in foreman_webhooks-3.0.5
- old
+ new
@@ -1,7 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';
+import { Modal } from 'patternfly-react';
import { useDispatch } from 'react-redux';
import { translate as __ } from 'foremanReact/common/I18n';
import { submitForm } from 'foremanReact/redux/actions/common/forms';
import { foremanUrl } from 'foremanReact/common/helpers';
@@ -45,14 +46,15 @@
);
return (
<ForemanModal
id={WEBHOOK_CREATE_MODAL_ID}
- title={__('Create Webhook')}
backdrop="static"
className="webhooks-modal"
>
- <ForemanModal.Header />
+ <Modal.Header>
+ <Modal.Title>{__('Create Webhook')}</Modal.Title>
+ </Modal.Header>
<ConnectedWebhookForm
handleSubmit={handleSubmit}
initialValues={initialWebhookValues}
onCancel={onCancel}
/>