From bff84738f2be2e880f43631eac79ba6a45f1e91f Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 9 Jan 2023 04:02:23 +0100 Subject: [PATCH] Fix icons. --- frontend/components/CopyField.tsx | 5 +++-- frontend/components/DownloadButton.tsx | 4 +++- frontend/components/Runner.tsx | 13 ++++++++----- frontend/components/VideoList.tsx | 3 ++- frontend/components/VideoListItem.tsx | 7 ++++--- frontend/pages/[id]/[vslug].tsx | 7 +++++-- 6 files changed, 25 insertions(+), 14 deletions(-) diff --git a/frontend/components/CopyField.tsx b/frontend/components/CopyField.tsx index 5aac77d..27d6e57 100644 --- a/frontend/components/CopyField.tsx +++ b/frontend/components/CopyField.tsx @@ -23,6 +23,7 @@ import Button from 'react-bootstrap/Button'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Overlay, Tooltip } from 'react-bootstrap'; import type { IconProp } from '@fortawesome/fontawesome-svg-core'; +import { faCopy, faShare } from '@fortawesome/free-solid-svg-icons'; import { FormattedMessage } from './localization'; function CopyField({ @@ -60,7 +61,7 @@ function CopyField({ icon ? ( - + ) : '' @@ -86,7 +87,7 @@ function CopyField({ } CopyField.defaultProps = { - copyIcon: 'copy', + copyIcon: faCopy, icon: null, }; diff --git a/frontend/components/DownloadButton.tsx b/frontend/components/DownloadButton.tsx index d7bf337..62fc146 100644 --- a/frontend/components/DownloadButton.tsx +++ b/frontend/components/DownloadButton.tsx @@ -16,6 +16,7 @@ */ import { IconProp } from '@fortawesome/fontawesome-svg-core'; +import { faDownload } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; import { Button } from 'react-bootstrap'; @@ -34,6 +35,7 @@ export default function DownloadButton({ return (