Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Use Next Image component for social links

Gabe Kangas60887669b54c
diff --git a/web/components/ui/SocialLinks/SocialLinks.tsx b/web/components/ui/SocialLinks/SocialLinks.tsx
index 47df842471..728bb5f0e4 100644
--- a/web/components/ui/SocialLinks/SocialLinks.tsx
+++ b/web/components/ui/SocialLinks/SocialLinks.tsx
@@ -1,3 +1,4 @@
+import Image from 'next/image';
import { FC } from 'react';
import { SocialLink } from '../../../interfaces/social-link.model';
import styles from './SocialLinks.module.scss';
@@ -17,11 +18,13 @@ export const SocialLinks: FC<SocialLinksProps> = ({ links }) => (
target="_blank"
rel="noreferrer"
>
- <img
+ <Image
src={link.icon || '/img/platformlogos/default.svg'}
alt={link.platform}
title={link.platform}
className={styles.link}
+ width="30"
+ height="30"
/>
</a>
))}