@rh-support/react-context 2.1.13 → 2.1.14

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.
@@ -18,9 +18,9 @@ import { Trans } from 'react-i18next';
18
18
  import { useGlobalStateContext } from '../../context/GlobalMetadataContext';
19
19
  import { useUserPreferences } from '../../hooks';
20
20
  export const HostnameAwarenessModal = () => {
21
- //function to fetch original data
21
+ // Function to fetch original data
22
22
  const { getHostnamesVisibilityObj, updateShowHostnamesCount } = useUserPreferences();
23
- //Setting State for original data value which are used to open/finalize close modal
23
+ // Setting State for original data value which are used to open/finalize close modal
24
24
  const [originalViewedCountValue, setViewedCountValue] = useState(null);
25
25
  const [doNotShowModal, setDoNotShowModal] = useState(undefined);
26
26
  const [doNotShowNotClicked, setDoNotShowNotClicked] = useState(true);
@@ -51,9 +51,9 @@ export const HostnameAwarenessModal = () => {
51
51
  });
52
52
  const userOriginalHostnameValue = () => __awaiter(void 0, void 0, void 0, function* () {
53
53
  const fetchedHostnameStatus = yield fetchHostnameDefault(accountNumber);
54
- setisHostnamesChecked(fetchedHostnameStatus.shareHostnameWithRHT);
54
+ setisHostnamesChecked(fetchedHostnameStatus === null || fetchedHostnameStatus === void 0 ? void 0 : fetchedHostnameStatus.shareHostnameWithRHT);
55
55
  // This is needed so we preserve initial state we do not close modal upon updating names.
56
- setAlreadyCheckedCloseModal(fetchedHostnameStatus.shareHostnameWithRHT);
56
+ setAlreadyCheckedCloseModal(fetchedHostnameStatus === null || fetchedHostnameStatus === void 0 ? void 0 : fetchedHostnameStatus.shareHostnameWithRHT);
57
57
  setIsHostnamesLoading(false);
58
58
  });
59
59
  userOriginalHostnamesCount();
@@ -87,7 +87,7 @@ export const HostnameAwarenessModal = () => {
87
87
  const onDoNotAskAgain = () => {
88
88
  try {
89
89
  setDoNotShowNotClicked(false);
90
- setDoNotShowModal(+!doNotShowModal);
90
+ setDoNotShowModal(!doNotShowModal);
91
91
  const updateObjValue = { shownCount: originalViewedCountValue, doNotShow: 1 };
92
92
  updateShowHostnamesCount(updateObjValue);
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/react-context",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -26,7 +26,7 @@
26
26
  "lib/**/*"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@cee-eng/hydrajs": "4.16.11",
29
+ "@cee-eng/hydrajs": "4.16.15",
30
30
  "@patternfly/react-core": "4.264.0",
31
31
  "@patternfly/react-icons": "4.92.10",
32
32
  "i18next": "^19.0.1",
@@ -37,13 +37,13 @@
37
37
  "react-test-renderer": "17.0.1"
38
38
  },
39
39
  "dependencies": {
40
- "@cee-eng/hydrajs": "4.16.11",
40
+ "@cee-eng/hydrajs": "4.16.15",
41
41
  "@patternfly/react-core": "4.264.0",
42
42
  "@patternfly/react-icons": "4.92.10",
43
- "@rh-support/components": "2.1.13",
43
+ "@rh-support/components": "2.1.14",
44
44
  "@rh-support/types": "2.0.2",
45
- "@rh-support/user-permissions": "2.1.7",
46
- "@rh-support/utils": "2.1.4",
45
+ "@rh-support/user-permissions": "2.1.8",
46
+ "@rh-support/utils": "2.1.5",
47
47
  "i18next": "^19.0.1",
48
48
  "localforage": "^1.10.0",
49
49
  "lodash": "^4.17.21",
@@ -85,5 +85,5 @@
85
85
  "defaults and supports es6-module",
86
86
  "maintained node versions"
87
87
  ],
88
- "gitHead": "3cb1c9deeb0f55a0df73b0f0845194a72cbac688"
88
+ "gitHead": "bfb34bcd3654c4842810f4e62b940ccf6f0b0dc4"
89
89
  }