From d2138671830de3fc97aecc391f6d50411bb642d8 Mon Sep 17 00:00:00 2001 From: Mandeep Singh Date: Mon, 27 Nov 2023 18:11:59 +0530 Subject: [PATCH] Fixes dark mode and typo in Recoil --- app/RecoilContextProviders.tsx | 4 +--- app/layout.tsx | 22 +++++++++++++++++++--- components/Toggle.tsx | 21 --------------------- 3 files changed, 20 insertions(+), 27 deletions(-) delete mode 100644 components/Toggle.tsx diff --git a/app/RecoilContextProviders.tsx b/app/RecoilContextProviders.tsx index e06ada0..bc4dc3d 100644 --- a/app/RecoilContextProviders.tsx +++ b/app/RecoilContextProviders.tsx @@ -1,7 +1,6 @@ 'use client' import { RecoilRoot, atom } from "recoil"; -import Toggle from "@/components/Toggle"; import { Toaster } from "react-hot-toast"; export const recoilState = atom({ @@ -9,11 +8,10 @@ export const recoilState = atom({ default: {}, }); -export default function RecoidContextProvider({children}: { children: React.ReactNode }) { +export default function RecoilContextProvider({children}: { children: React.ReactNode }) { return ( - {children} ); diff --git a/app/layout.tsx b/app/layout.tsx index 63f59ff..b3ae19d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,7 +1,7 @@ import "./styles/globals.css"; import React from "react"; import { NextAuthProvider } from './Providers'; -import RecoidContextProvider from "./RecoilContextProviders"; +import RecoilContextProvider from "./RecoilContextProviders"; import { Metadata } from "next"; export const metadata : Metadata = { @@ -16,10 +16,26 @@ export default function RootLayout({ }) { return ( + + {/* */} +