This package exports components to show remediations dialog, button and also export API to be used directly trough this package.
With NPM
npm i -S @redhat-cloud-services/frontend-components-remediations
With yarn
yarn add @redhat-cloud-services/frontend-components-remediations
This package is dependent on @redhat-cloud-services/frontend-components-utilities and @redhat-cloud-services/frontend-components it will automatically install them trough direct dependencies.
Absolute import paths have changed. Do not reference CJS or EMS or the file extensions in your import paths
-import RemediationButton from '@redhat-cloud-services/frontend-components-remediations/esm/RemediationButton';
-import RemediationButton from '@redhat-cloud-services/frontend-components-remediations/esm/RemediationButton.js';
+import RemediationButton from '@redhat-cloud-services/frontend-components-remediations/RemediationButton';
It is no longer required to import styles. CSS is import automatically with the javascript
-import '@redhat-cloud-services/frontend-components-remediations/index.css';
- Usage