hero1
This commit is contained in:
parent
34fca1680c
commit
a63ba979d4
3 changed files with 0 additions and 19 deletions
|
|
@ -13,9 +13,6 @@ import { generateMeta } from '@/utilities/generateMeta'
|
|||
import PageClient from './page.client'
|
||||
import { LivePreviewListener } from '@/components/LivePreviewListener'
|
||||
|
||||
import HeroBackground from '@/components/HeroBackground'
|
||||
import HeroPage from '@/components/HeroPage'
|
||||
|
||||
export async function generateStaticParams() {
|
||||
const payload = await getPayload({ config: configPromise })
|
||||
const pages = await payload.find({
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ import { InitTheme } from '@/providers/Theme/InitTheme'
|
|||
import { mergeOpenGraph } from '@/utilities/mergeOpenGraph'
|
||||
import { draftMode } from 'next/headers'
|
||||
|
||||
|
||||
import './globals.css'
|
||||
import { getServerSideURL } from '@/utilities/getURL'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
'use client'
|
||||
import React from 'react'
|
||||
|
||||
import { HeaderThemeProvider } from './HeaderTheme'
|
||||
import { ThemeProvider } from './Theme'
|
||||
|
||||
import { ThemeProvider as NextThemesProvider } from 'next-themes'
|
||||
|
||||
export const Providers: React.FC<{
|
||||
children: React.ReactNode
|
||||
}> = ({ children }) => {
|
||||
|
|
@ -15,15 +12,3 @@ export const Providers: React.FC<{
|
|||
</ThemeProvider>
|
||||
)
|
||||
}
|
||||
|
||||
export function ThemeProvider({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<NextThemesProvider
|
||||
attribute="class"
|
||||
defaultTheme="dark"
|
||||
enableSystem={false}
|
||||
>
|
||||
{children}
|
||||
</NextThemesProvider>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue