Fix broken 'Open File' icon color

## Issue
The removal of `svg` from `media__subtitle` in 09b689ba made the icon black.

## Fix
Both 'Open File' and 'Download' should have the same css class.
This commit is contained in:
infinite-persistence 2021-02-24 10:19:10 +08:00 committed by Sean Yesmunt
parent bf5b2370e2
commit 217ae3ecf7

View file

@ -13,7 +13,7 @@ type Props = {
fileInfo: ?FileListItem,
openModal: (id: string, { path: string }) => void,
pause: () => void,
download: string => void,
download: (string) => void,
costInfo: ?{ cost: string },
buttonType: ?string,
showLabel: ?boolean,
@ -91,6 +91,7 @@ function FileDownloadLink(props: Props) {
return hideOpenButton ? null : (
<Button
button={buttonType}
className={buttonType ? undefined : 'button--file-action'}
title={openLabel}
label={showLabel ? openLabel : null}
icon={ICONS.EXTERNAL}