debian-image-builder-frontend/src/Components/CreateImageWizard/formComponents
lucasgarfield b2e6e3cf04 Wizard: Use useChrome hook to set beta feature flag
The use of chrome.isBeta is deprecated, the useChrome hook should be
used instead to obtain an isBeta() function. Using the deprecrated
chrome.isBeta pollutes the browser console with warning messages.

This commit replaces the isBeta() helper function with a new custom
hook, useGetEnvironment().

We still sometimes need to know which environment is running outside of
React components, where we cannot call the useChrome() or
useGetEnvironment() hooks. For instance, in the json used to define a
wizard step. Therefore a new isBeta variable has been added to the
form's initialState for use in these cases.
2023-04-28 17:07:31 +02:00
..
ActivationKeyInformation.js Wizard: Fix unavailable key information error 2023-04-19 08:20:03 +02:00
ActivationKeys.js Wizard: Migrate activation keys calls to RTK Query 2023-04-14 16:52:47 +02:00
AWSSourcesSelect.js Specify ouiaId to use as selector for testing 2023-03-09 12:27:21 +01:00
AzureAuthButton.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
AzureResourceGroups.js Add ouiaID for resource group select 2023-04-26 13:17:29 +02:00
AzureSourcesSelect.js Add sources selection for Azure 2023-04-13 13:32:23 +02:00
CentOSAcknowledgement.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
CustomButtons.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
FieldListener.js Wizard: Add ability to specify AWS target using sources 2023-03-01 11:25:28 +01:00
FileSystemConfigButtons.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
FileSystemConfiguration.js Wizard: Disable remove button for the root partition 2023-04-04 18:05:53 +02:00
GalleryLayout.js Wizard: Add ability to specify AWS target using sources 2023-03-01 11:25:28 +01:00
ImageOutputReleaseSelect.js Wizard: Update order of releases on the Image output step 2023-01-25 14:21:18 +01:00
MountPoint.js Wizard: Disable remove button for the root partition 2023-04-04 18:05:53 +02:00
Packages.js Wizard: Use useChrome hook to set beta feature flag 2023-04-28 17:07:31 +02:00
RadioWithPopover.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
Registration.js CreateImageWizard/Registration: remove extra rhc/insights vars 2023-03-13 13:48:43 +01:00
RegistrationKeyInformation.js Wizard: Add activation key information in Registration step 2022-12-14 10:31:54 +01:00
Repositories.js Wizard: Use useChrome hook to set beta feature flag 2023-04-28 17:07:31 +02:00
ReviewStep.js Wizard: Update the Review step to have expandable sections 2023-03-27 10:35:17 +02:00
ReviewStepTables.js Wizard: Remove prop validation for ReviewStepTables and ReviewStepTextLists 2023-04-14 12:12:38 +02:00
ReviewStepTextLists.js Wizard: Migrate activation keys calls to RTK Query 2023-04-14 16:52:47 +02:00
SizeUnit.js ESLint: Use --fix with updated rules to order imports 2022-12-02 16:29:58 +01:00
TargetEnvironment.js Wizard: Add ability to specify AWS target using sources 2023-03-01 11:25:28 +01:00