@rh-support/react-context 2.5.35 → 2.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSSUserModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CSSUserModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,UAAU,MAAM;IACZ,oCAAoC,EAAE,MAAM,IAAI,CAAC;IACjD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,oCAAoC,EAAE,OAAO,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CSSUserModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CSSUserModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAIpD,UAAU,MAAM;IACZ,oCAAoC,EAAE,MAAM,IAAI,CAAC;IACjD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,oCAAoC,EAAE,OAAO,EAAE,EAAE,MAAM,qBAiGrF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Modal, ModalFooter, ModalVariant } from '@patternfly/react-core';
|
|
1
|
+
import { Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
2
2
|
import React, { useContext, useState } from 'react';
|
|
3
3
|
import { GlobalMetadataStateContext } from '../../context/GlobalMetadataContext';
|
|
4
4
|
export function CSSUserModal({ onConfirmTraditionalSupportAgreement, display }) {
|
|
@@ -21,14 +21,19 @@ export function CSSUserModal({ onConfirmTraditionalSupportAgreement, display })
|
|
|
21
21
|
if (!display || !isConfirmedStateSideSupport)
|
|
22
22
|
return null;
|
|
23
23
|
return (React.createElement(React.Fragment, null,
|
|
24
|
-
React.createElement(Modal, { variant: ModalVariant.medium,
|
|
25
|
-
|
|
24
|
+
React.createElement(Modal, { variant: ModalVariant.medium, isOpen: isConfirmedStateSideSupport && showSupportTypeModal, onClose: () => setShowSupportTypeModal(false) },
|
|
25
|
+
React.createElement(ModalHeader, null,
|
|
26
|
+
React.createElement("h2", null, "Choose the type of support you want")),
|
|
27
|
+
React.createElement(ModalBody, null, "You have a Confirmed Stateside Support account"),
|
|
26
28
|
React.createElement(ModalFooter, null,
|
|
27
29
|
React.createElement(Button, { key: "confirmed-stateside-support-btn", "data-tracking-id": "confirmed-stateside-support-btn", "aria-label": "Confirmed stateside support", onClick: handleCSSclick }, "Confirmed Stateside Support"),
|
|
28
30
|
React.createElement(Button, { variant: "secondary", key: "traditional-support-btn", "data-tracking-id": "traditional-support-btn", "aria-label": "Traditional support", onClick: handleTraditionalSupportClick }, "Traditional Support"))),
|
|
29
|
-
React.createElement(Modal, { variant: ModalVariant.medium,
|
|
30
|
-
React.createElement(
|
|
31
|
-
|
|
31
|
+
React.createElement(Modal, { variant: ModalVariant.medium, isOpen: isConfirmedStateSideSupport && showTraditionalSupportAgreement, onClose: () => setShowTraditionalSupportAgreement(false) },
|
|
32
|
+
React.createElement(ModalHeader, null,
|
|
33
|
+
React.createElement("h2", null, "Traditional Support")),
|
|
34
|
+
React.createElement(ModalBody, null,
|
|
35
|
+
React.createElement("p", null, "By continuing you agree not to transmit Controlled Unclassified Information(CUI) or export-controlled information to the Red Hat Customer Portal."),
|
|
36
|
+
React.createElement("p", { className: "pf-v6-u-pt-md" }, "The Customer Portal is not certified to store data regulated by the US government, including data covered by ITAR or EAR (Export Administration Regulations).")),
|
|
32
37
|
React.createElement(ModalFooter, null,
|
|
33
38
|
React.createElement(Button, { variant: "secondary", key: "traditional-support-back-button", "data-tracking-id": "traditional-support-back-button", "aria-label": "Traditional support back button", onClick: () => setShowTraditionalSupportAgreement(false) }, "Back"),
|
|
34
39
|
React.createElement(Button, { key: "agree-traditional-support-button", "data-tracking-id": "agree-traditional-support-button", "aria-label": "Agree traditional support button", onClick: handleTraditionalSupportAgreement }, "I agree")))));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/react-context",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.36",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"defaults and supports es6-module",
|
|
94
94
|
"maintained node versions"
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "60ca9bb964b292380cd258edc372803a9a387f57"
|
|
97
97
|
}
|