diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..cb15887 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +public-hoist-pattern[]=*@nextui-org/* \ No newline at end of file diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx index b2b34c6..e69b227 100644 --- a/app/[locale]/layout.tsx +++ b/app/[locale]/layout.tsx @@ -2,6 +2,8 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./global.css"; import { NextIntlClientProvider, useMessages } from "next-intl"; +import { ThemeProvider } from "next-themes"; +import { Providers } from "../providers"; const inter = Inter({ subsets: ["latin"] }); @@ -22,11 +24,15 @@ export default function LocaleLayout({ }) { const messages = useMessages(); return ( - + - - {children} - + + + + {children} + + + ); diff --git a/app/providers.tsx b/app/providers.tsx new file mode 100644 index 0000000..7c4147b --- /dev/null +++ b/app/providers.tsx @@ -0,0 +1,12 @@ +// app/providers.tsx +'use client' + +import {NextUIProvider} from '@nextui-org/react' + +export function Providers({children}: { children: React.ReactNode }) { + return ( + + {children} + + ) +} \ No newline at end of file diff --git a/components/index.tsx b/components/index.tsx index 490f2bb..7823b3c 100644 --- a/components/index.tsx +++ b/components/index.tsx @@ -8,6 +8,7 @@ import Search from "./search/search"; import { bgFocusState } from "./state/background"; import Time from "./time"; import loadSettings from "@/lib/loadSettings"; +import EngineSelector from "./search/engineSelector"; export default function Homepage() { const [settings, setSettings] = useRecoilState(settingsState); @@ -36,6 +37,7 @@ export default function Homepage() { return (