chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import type { AppType } from 'next/app'
|
||||
import { ThemeProvider } from 'next-themes'
|
||||
import type { AppType } from "next/app"
|
||||
import { ThemeProvider } from "next-themes"
|
||||
|
||||
import '../styles/globals.css'
|
||||
import "../styles/globals.css"
|
||||
|
||||
const MyApp: AppType = ({ Component, pageProps }) => {
|
||||
return (
|
||||
<ThemeProvider attribute='class' defaultTheme='dark'>
|
||||
<ThemeProvider attribute="class" defaultTheme="dark">
|
||||
<Component {...pageProps} />
|
||||
</ThemeProvider>
|
||||
)
|
||||
|
@ -1,10 +1,10 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document'
|
||||
import { Html, Head, Main, NextScript } from "next/document"
|
||||
|
||||
const Document: React.FC = () => {
|
||||
return (
|
||||
<Html>
|
||||
<Head />
|
||||
<body className='bg-white text-black dark:bg-black dark:text-white'>
|
||||
<body className="bg-white text-black dark:bg-black dark:text-white">
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
|
@ -1,21 +1,21 @@
|
||||
import type { GetStaticProps, NextPage } from 'next'
|
||||
import Head from 'next/head'
|
||||
import type { GetStaticProps, NextPage } from "next"
|
||||
import Head from "next/head"
|
||||
|
||||
import { About } from '../components/About'
|
||||
import { FormExample } from '../components/FormExample'
|
||||
import { Header } from '../components/Header'
|
||||
import { About } from "../components/About"
|
||||
import { FormExample } from "../components/FormExample"
|
||||
import { Header } from "../components/Header"
|
||||
|
||||
const Home: NextPage = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>react-component-form</title>
|
||||
<meta name='description' content='Manage React Forms with ease.' />
|
||||
<link rel='icon' href='/favicon.ico' />
|
||||
<meta name="description" content="Manage React Forms with ease." />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
|
||||
<Header />
|
||||
<main className='flex flex-col justify-center items-center mt-4'>
|
||||
<main className="flex flex-col justify-center items-center mt-4">
|
||||
<About />
|
||||
<FormExample />
|
||||
</main>
|
||||
|
Reference in New Issue
Block a user