Skip to content

Commit

Permalink
Fixed compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Aug 11, 2023
1 parent dad93f6 commit 30ee974
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Queue/QueueEntry/YARG.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { YARGDownload } from "@app/utils/Download/Processors/YARG";
import BaseQueue from "./base";
import StableYARGIcon from "@app/assets/StableYARGIcon.png";
import NightlyYARGIcon from "@app/assets/NightlyYARGIcon.png";
import DevYARGIcon from "@app/assets/DevYARGIcon.png";
import { YARGChannels } from "@app/hooks/useYARGRelease";

interface Props {
Expand All @@ -11,14 +12,15 @@ interface Props {

const YARGQueue: React.FC<Props> = ({ downloader, bannerMode }: Props) => {

const channelIconPath: {[key in YARGChannels]: string} = {
const channelIconPath: { [key in YARGChannels]: string } = {
"stable": StableYARGIcon,
"nightly": NightlyYARGIcon
"nightly": NightlyYARGIcon,
"newEngine": DevYARGIcon
};

return <BaseQueue
name="YARG"
icon={<img src={ channelIconPath[downloader.channel] } />}
icon={<img src={channelIconPath[downloader.channel]} />}
version={downloader.version}
versionChannel={downloader.channel.toUpperCase()}
bannerMode={bannerMode}
Expand Down

0 comments on commit 30ee974

Please sign in to comment.