diff --git a/Frontend/components/Utilities/Background.tsx b/Frontend/components/Utilities/Background.tsx index 3692f42..25c6cfe 100644 --- a/Frontend/components/Utilities/Background.tsx +++ b/Frontend/components/Utilities/Background.tsx @@ -1,6 +1,4 @@ "use client"; - -import colors, { hexToRgb } from "@/utils/colors"; import { useTheme } from "next-themes"; import React, { ReactNode, useEffect, useState } from "react"; import Image from "next/image"; @@ -13,28 +11,13 @@ const Background = ({ className?: string; }) => { const { theme } = useTheme(); - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(true); - }, []); - - if (!mounted) { - return ( -
- ); - } - - const backgroundColor = hexToRgb(colors[theme!]["neutral"]); return (