From 0cb69b846e86ffd76e1e4011205b484efff1505c Mon Sep 17 00:00:00 2001 From: Joel Villarino Date: Sat, 30 Mar 2024 13:17:05 -0500 Subject: [PATCH] Removed theme footer button --- src/app/Footer.tsx | 34 ---------------------------------- src/app/layout.tsx | 2 -- 2 files changed, 36 deletions(-) delete mode 100644 src/app/Footer.tsx diff --git a/src/app/Footer.tsx b/src/app/Footer.tsx deleted file mode 100644 index f0df3f8..0000000 --- a/src/app/Footer.tsx +++ /dev/null @@ -1,34 +0,0 @@ -"use client" - -import React, { useEffect } from "react" -import { themeChange } from "theme-change" - -const Footer: React.FC = () => { - useEffect(() => { - themeChange(false) - // 👆 false parameter is required for react project - }, []) - - const themes = ["dark", "light", "cupcake"] - - return ( - - ) -} - -export default Footer diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 597e3f8..c155a5a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -2,7 +2,6 @@ import type { Metadata } from "next" import { Inter } from "next/font/google" import "./globals.css" import NavBarComp from "./NavbarComp" -import Footer from "./Footer" const inter = Inter({ subsets: ["latin"] }) @@ -21,7 +20,6 @@ export default function RootLayout({
{children}
-