Move help text for DownloadDialog into dropdown (#4399)

This commit is contained in:
Erik Jan de Wit 2023-02-15 12:24:09 +01:00 committed by GitHub
parent c530f60282
commit 2089d7c2e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,4 @@
import {
Alert,
AlertVariant,
Form,
FormGroup,
ModalVariant,
@ -111,22 +109,6 @@ export const DownloadDialog = ({
>
<Form>
<Stack hasGutter>
{enabled && (
<StackItem>
<Alert
id={id}
title={t("clients:description")}
variant={AlertVariant.info}
isInline
>
{
configFormats.find(
(configFormat) => configFormat.id === selected
)?.helpText
}
</Alert>
</StackItem>
)}
<StackItem>
<FormGroup
fieldId="type"
@ -157,6 +139,7 @@ export const DownloadDialog = ({
key={configFormat.id}
value={configFormat.id}
isSelected={selected === configFormat.id}
description={enabled ? configFormat.helpText : undefined}
>
{configFormat.displayType}
</SelectOption>