diff --git a/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/DiffModal.js b/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/DiffModal.js index 5784d00990a..e1e04743fea 100644 --- a/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/DiffModal.js +++ b/webpack/assets/javascripts/react_app/components/ConfigReports/DiffModal/DiffModal.js @@ -1,6 +1,6 @@ import React from 'react'; -import { Modal, Button } from 'patternfly-react'; -import { Icon } from '@patternfly/react-core'; +import { Modal } from 'patternfly-react'; +import { Icon, Button } from '@patternfly/react-core'; import { TimesIcon } from '@patternfly/react-icons'; import PropTypes from 'prop-types'; @@ -24,9 +24,10 @@ const DiffModal = ({

{title}

- - - -
- -
-
- -`; diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/ForemanModalFooter.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/ForemanModalFooter.js index 9a7eea25018..e8e05a3ee3a 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/ForemanModalFooter.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/ForemanModalFooter.js @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Modal, Button } from 'patternfly-react'; +import { Modal } from 'patternfly-react'; +import { Button } from '@patternfly/react-core'; import { useModalContext } from '../ForemanModalHooks'; import { translate as __ } from '../../../common/I18n'; @@ -12,7 +13,7 @@ const ForemanModalFooter = props => { // Render the provided children, or default markup if none given const closeButton = childCount === 0 && ( - ); diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/CancelBtn.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/CancelBtn.js index 36ccd0dfece..c7029605a51 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/CancelBtn.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/CancelBtn.js @@ -1,11 +1,17 @@ import React from 'react'; -import { Button } from 'patternfly-react'; +import { Button } from '@patternfly/react-core'; import PropTypes from 'prop-types'; import { translate as __ } from '../../../../common/I18n'; -const CancelBtn = ({ onCancel, disabled, bsStyle, btnText }) => ( - ); @@ -13,13 +19,13 @@ const CancelBtn = ({ onCancel, disabled, bsStyle, btnText }) => ( CancelBtn.propTypes = { onCancel: PropTypes.func.isRequired, disabled: PropTypes.bool, - bsStyle: PropTypes.string, + variant: PropTypes.oneOf(['secondary', 'danger']), btnText: PropTypes.string, }; CancelBtn.defaultProps = { disabled: false, - bsStyle: 'default', + variant: 'secondary', btnText: __('Cancel'), }; diff --git a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitBtn.js b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitBtn.js index 7a906dd43ce..b7092ed2854 100644 --- a/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitBtn.js +++ b/webpack/assets/javascripts/react_app/components/ForemanModal/subcomponents/SubmitOrCancel/SubmitBtn.js @@ -1,11 +1,16 @@ import React from 'react'; -import { Button } from 'patternfly-react'; +import { Button } from '@patternfly/react-core'; import PropTypes from 'prop-types'; import { translate as __ } from '../../../../common/I18n'; import { simpleLoader } from '../../../common/Loader'; -const SubmitBtn = ({ isSubmitting, onSubmit, bsStyle, btnText }) => ( - - -`; - -exports[`ForemanModal.Footer rendering should render with supplied children 1`] = ` - -

- Modal Footer -

-
-`;