diff --git a/pages/_app.tsx b/pages/_app.tsx index d87626806..bd7f0f066 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,10 +1,10 @@ -import '../src/styles/main.scss' -import 'keen-slider/keen-slider.min.css' +import { ThemeProvider } from 'next-themes'; +import type { AppProps } from 'next/app'; +import React, { FC, useEffect } from 'react'; +import { Head } from 'src/components/common'; +import 'keen-slider/keen-slider.min.css'; +import '../src/styles/main.scss'; -import { FC, useEffect } from 'react' -import type { AppProps } from 'next/app' -import { Head } from '@components/common' -import { ManagedUIContext } from '@components/ui/context' const Noop: FC = ({ children }) => <>{children} @@ -18,11 +18,11 @@ export default function MyApp({ Component, pageProps }: AppProps) { return ( <> - + - + ) } diff --git a/src/components/common/Head/Head.tsx b/src/components/common/Head/Head.tsx new file mode 100644 index 000000000..b2c0c997b --- /dev/null +++ b/src/components/common/Head/Head.tsx @@ -0,0 +1,18 @@ +import { FC } from 'react' +import NextHead from 'next/head' +import { DefaultSeo } from 'next-seo' +import config from '@config/seo.json' + +const Head: FC = () => { + return ( + <> + + + + + + + ) +} + +export default Head diff --git a/src/components/common/index.ts b/src/components/common/index.ts index 1a00afe81..a52628d73 100644 --- a/src/components/common/index.ts +++ b/src/components/common/index.ts @@ -1,4 +1,5 @@ export { default as ButtonCommon } from './ButtonCommon/ButtonCommon' export { default as Layout } from './Layout/Layout' export { default as CarouselCommon } from './CarouselCommon/CarouselCommon' +export { default as Head } from './Head/Head' diff --git a/tsconfig.json b/tsconfig.json index 72608f830..6a08e59f8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,7 @@ "isolatedModules": true, "jsx": "preserve", "incremental": true, + "noUnusedLocals": true, "paths": { "@lib/*": ["lib/*"], "@utils/*": ["utils/*"],