diff --git a/components/Icon.tsx b/components/Icon.tsx index 6d4fcf2..b3d7c04 100644 --- a/components/Icon.tsx +++ b/components/Icon.tsx @@ -19,14 +19,15 @@ const notify = () => { }); }; -export const Icon = ({children, reference, copyValue}: Icon) => { +export const Icon = ({ children, reference, copyValue }: Icon) => { if (copyValue) { return ( { notify(), copy(reference); - }}> + }} + > {children} ); diff --git a/components/data/socials.ts b/components/data/socials.ts index 90ee0e3..2723f56 100644 --- a/components/data/socials.ts +++ b/components/data/socials.ts @@ -1,4 +1,4 @@ -import {IconType} from 'react-icons/lib'; +import { IconType } from 'react-icons/lib'; import { FaDiscord, FaEnvelope, diff --git a/pages/_app.tsx b/pages/_app.tsx index 63b3a2b..510a96c 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,9 +1,9 @@ import 'styles/globals.scss'; import Head from 'next/head'; -import {AppProps} from 'next/app'; +import { AppProps } from 'next/app'; -export default function ({Component, pageProps}: AppProps) { +export default function ({ Component, pageProps }: AppProps) { return ( <>
diff --git a/pages/_document.tsx b/pages/_document.tsx index efcde3d..070dfdf 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,4 +1,4 @@ -import Document, {Html, Head, Main, NextScript} from 'next/document'; +import Document, { Html, Head, Main, NextScript } from 'next/document'; class AppDocument extends Document { render() { diff --git a/pages/index.tsx b/pages/index.tsx index ee78611..1dd8d38 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -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 () {