webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js in katello-3.15.0.rc1.1 vs webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js in katello-3.15.0.rc1.2

- old
+ new

@@ -1,5 +1,6 @@ +import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; const question = __('Are you sure you want to delete the manifest?'); const note = __(`Note: Deleting a subscription manifest is STRONGLY discouraged. Deleting a manifest will:`); @@ -9,16 +10,20 @@ const l4 = __(`Require you to upload the subscription-manifest and re-attach subscriptions to hosts and activation keys.`); const debug = __(`This action should only be taken in extreme circumstances or for debugging purposes.`); -const DeleteManifestModalText = `<p>${question}</p> -<p>${note}</p> -<ul class="list-aligned"> - <li>${l1}</li> - <li>${l2}</li> - <li>${l3}</li> - <li>${l4}</li> -</ul> -<p>${debug}</p>`; +const DeleteManifestModalText = () => ( + <React.Fragment> + <p>{question}</p> + <p>{note}</p> + <ul className="list-aligned"> + <li>{l1}</li> + <li>{l2}</li> + <li>{l3}</li> + <li>{l4}</li> + </ul> + <p>{debug}</p> + </React.Fragment> +); export default DeleteManifestModalText;