diff --git a/src/components/common/footer/index.tsx b/src/components/common/footer/index.tsx index a9e7f53..a3518fc 100644 --- a/src/components/common/footer/index.tsx +++ b/src/components/common/footer/index.tsx @@ -1,8 +1,6 @@ -import clsx from 'clsx' import { useRouter } from 'next/router' import { useTheme } from 'next-themes' import { useEffect, useRef, useState } from 'react' -import { ArrowLink } from '~/components/icons/arrow' import { LogoFooter } from '~/components/icons/logo' import { Discord, @@ -15,73 +13,12 @@ import { Youtube } from '~/components/icons/socials' import { Container } from '~/components/layout/container' -import Heading from '~/components/primitives/heading' import Link from '~/components/primitives/link' import Switch from '~/components/primitives/switch' import { useIsomorphicLayoutEffect } from '~/hooks/use-isomorphic-layout-effect' import s from './footer.module.scss' -type FormProps = { - className?: string - message: string - onSubmitted?: ({ EMAIL }: { EMAIL: string }) => void - status: 'success' | 'error' | 'sending' - style?: React.CSSProperties -} - -const SimpleForm = ({ - className, - message, - onSubmitted, - status, - style -}: FormProps) => { - let input: HTMLInputElement | null - - const submit = (e: any) => { - e.preventDefault() - if (!onSubmitted) return - input && - input.value.indexOf('@') > -1 && - onSubmitted({ - EMAIL: input.value - }) - } - - useEffect(() => { - if (!input) return - if (status === 'success') { - input.value = '' - } - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [status]) - - return ( -