From cdce271306942b5261c837c866ca83e649fa4792 Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 8 Aug 2023 16:09:11 +0200 Subject: [PATCH] Wizard: Migrate ActivationKeyInformation to TypeScript This migrates the ActivationKeyInformation component to TypeScript --- ...ivationKeyInformation.js => ActivationKeyInformation.tsx} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename src/Components/CreateImageWizard/formComponents/{ActivationKeyInformation.js => ActivationKeyInformation.tsx} (96%) diff --git a/src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.js b/src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.tsx similarity index 96% rename from src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.js rename to src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.tsx index 9947195b..cdcdedc1 100644 --- a/src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.js +++ b/src/Components/CreateImageWizard/formComponents/ActivationKeyInformation.tsx @@ -26,7 +26,7 @@ import { import { useShowActivationKeyQuery } from '../../../store/rhsmApi'; -const ActivationKeyInformation = () => { +const ActivationKeyInformation = (): JSX.Element => { const { getState } = useFormApi(); const { currentStep } = useContext(WizardContext); @@ -101,7 +101,8 @@ const ActivationKeyInformation = () => { component={TextListItemVariants.dd} className="pf-u-display-flex pf-u-align-items-flex-end" > - {activationKeyInfo.body?.additionalRepositories?.length > 0 ? ( + {activationKeyInfo.body?.additionalRepositories && + activationKeyInfo.body?.additionalRepositories?.length > 0 ? (