Move help text for DownloadDialog
into dropdown (#4399)
This commit is contained in:
parent
c530f60282
commit
2089d7c2e7
1 changed files with 1 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue