mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
bracket spacing
This commit is contained in:
parent
5076ed4efb
commit
83f69ba0d5
5 changed files with 14 additions and 12 deletions
|
@ -4,17 +4,17 @@ import React from 'react';
|
|||
import useSWR from 'swr';
|
||||
import FadeIn from 'react-fade-in';
|
||||
|
||||
import {socials} from 'components/data/socials';
|
||||
import {Icon} from 'components/Icon';
|
||||
import {Toaster} from 'react-hot-toast';
|
||||
import {FaSpotify} from 'react-icons/fa';
|
||||
import { socials } from 'components/data/socials';
|
||||
import { Icon } from 'components/Icon';
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
import { FaSpotify } from 'react-icons/fa';
|
||||
|
||||
import profilePic from 'public/profile.webp';
|
||||
|
||||
export const fetcher = (url: RequestInfo) => fetch(url).then((r) => r.json());
|
||||
|
||||
export default function () {
|
||||
var {data: spotify} = useSWR('/api/spotify', fetcher, {
|
||||
var { data: spotify } = useSWR('/api/spotify', fetcher, {
|
||||
refreshInterval: 3000,
|
||||
fallbackData: 'loading',
|
||||
});
|
||||
|
@ -67,7 +67,8 @@ export default function () {
|
|||
<Icon
|
||||
key={social.id}
|
||||
reference={social.ref}
|
||||
copyValue={social.copyValue}>
|
||||
copyValue={social.copyValue}
|
||||
>
|
||||
{React.createElement(social.icon)}
|
||||
</Icon>
|
||||
))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue