ImagesTable: Remove the icon from the download link

Fixes #803. This removes the download icon and adds brackets around the file extension.
This commit is contained in:
regexowl 2022-09-26 15:15:48 +02:00 committed by Klara Simickova
parent bd76ff4aba
commit f32f65c9fb

View file

@ -9,7 +9,7 @@ import {
TextContent,
TextVariants,
} from '@patternfly/react-core';
import { DownloadIcon, ExternalLinkAltIcon } from '@patternfly/react-icons';
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
import { resolveRelPath } from '../../Utilities/path';
const ImageLinkDirect = ({ uploadStatus, ...props }) => {
@ -106,12 +106,10 @@ const ImageLinkDirect = ({ uploadStatus, ...props }) => {
component="a"
target="_blank"
variant="link"
icon={<DownloadIcon />}
iconPosition="right"
isInline
href={uploadStatus.options.url}
>
Download {fileExtensions[props.imageType]}
Download ({fileExtensions[props.imageType]})
</Button>
);
} else {