Use Next Image component for social links
This commit is contained in:
parent
62045d94a6
commit
65fcbb9d3f
@ -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>
|
||||
))}
|
||||
|
Loading…
x
Reference in New Issue
Block a user