Add category icons as customizable svgs

This commit is contained in:
Gabe Kangas
2022-05-17 21:20:27 -07:00
parent 0d5d89a1c8
commit 0bf1c7ce48
14 changed files with 804 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ import { Follower } from '../../../interfaces/follower';
import SocialLinks from '../SocialLinks/SocialLinks';
import NotifyReminderPopup from '../NotifyReminderPopup/NotifyReminderPopup';
import ServerLogo from '../Logo/Logo';
import CategoryIcon from '../CategoryIcon/CategoryIcon';
const { TabPane } = Tabs;
const { Content } = Layout;
@@ -91,7 +92,10 @@ export default function ContentComponent() {
<ServerLogo src="/logo" />
<div className={s.titleSection}>
<div className={s.title}>{name}</div>
<div className={s.subtitle}>{title}</div>
<div className={s.subtitle}>
{title}
<CategoryIcon tags={tags} />
</div>
<div>{tags.length > 0 && tags.map(tag => <span key={tag}>#{tag}&nbsp;</span>)}</div>
</div>
</div>