chore: better Prettier config for easier reviews

This commit is contained in:
2023-10-23 23:26:27 +02:00
parent 1224ece116
commit a49e844c70
50 changed files with 4642 additions and 3862 deletions

View File

@ -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>
)

View File

@ -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>

View File

@ -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>