webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhookCreateModal.js in foreman_webhooks-2.0.3 vs webpack/ForemanWebhooks/Routes/Webhooks/WebhooksIndexPage/Components/WebhookCreateModal.js in foreman_webhooks-3.0.0
- old
+ new
@@ -1,8 +1,7 @@
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';
@@ -46,15 +45,14 @@
);
return (
<ForemanModal
id={WEBHOOK_CREATE_MODAL_ID}
+ title={__('Create Webhook')}
backdrop="static"
className="webhooks-modal"
>
- <Modal.Header>
- <Modal.Title>{__('Create Webhook')}</Modal.Title>
- </Modal.Header>
+ <ForemanModal.Header />
<ConnectedWebhookForm
handleSubmit={handleSubmit}
initialValues={initialWebhookValues}
onCancel={onCancel}
/>