Skip to content

Commit

Permalink
Using custom svg icon for discord instead of one from @mdi/js
Browse files Browse the repository at this point in the history
  • Loading branch information
Shebuka committed Sep 9, 2024
1 parent 7353f9b commit db7abc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/images/Discord-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions src/pages/start/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useSearchParams } from "react-router-dom";
import { Link } from 'react-router-dom';
import { HashLink } from 'react-router-hash-link';
import { useTranslation } from 'react-i18next';
import { ReactComponent as DiscordIcon } from '../../images/Discord-icon.svg';

import QueueBrowserTask from '../../modules/queue-browser-task.js';

Expand All @@ -25,7 +26,6 @@ import {
mdiProgressWrench,
mdiMap,
mdiViewGrid,
mdiDiscord,
mdiHome,
mdiCalendarClock,
mdiEmoticonDevil,
Expand Down Expand Up @@ -215,10 +215,9 @@ function Start() {
<a
href={DISCORD_STASH_INVITE_LINK}
>
<Icon
path={mdiDiscord}
size={1}
<DiscordIcon
className="icon-with-text"
style={{ width: '1.5rem', height: '1.5rem', fill: 'currentcolor' }}
/>
{t('Invite Discord bot')}
</a>
Expand Down

0 comments on commit db7abc2

Please sign in to comment.