This commit is contained in:
skidoodle 2022-08-15 15:21:27 +02:00
parent a93d09feb8
commit 84bf1b3815
4 changed files with 14 additions and 10 deletions

View file

@ -16,7 +16,6 @@ const fetcher = (url: RequestInfo) => fetch(url).then(r => r.json())
export default function() {
const { data: spotify } = useSWR('/api/spotify', fetcher, { refreshInterval: 1000 })
if(!spotify) return
return (
<FadeIn>
<div className='px-8 w-11/12 m-auto rounded-lg max-w-4xl'>
@ -50,7 +49,13 @@ export default function() {
<div className='flex justify-between items-center text-3xl mt-11 md:mt-16 max-w-sm m-auto'>
{ socials.map(social => (
<Icon key={ social.id } aria-label={ social.name } reference={ social.ref } copyValue={ social.copyValue }>{ React.createElement(social.icon) }</Icon>
<Icon
key={ social.id }
reference={ social.ref }
copyValue={ social.copyValue }
>
{ React.createElement(social.icon) }
</Icon>
))}
</div>
</div>