Fixed issues
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useTheme as useNextTheme } from "next-themes";
|
||||
|
||||
export function useTheme() {
|
||||
const { theme, resolvedTheme, setTheme } = useNextTheme();
|
||||
const [mounted] = useState(true);
|
||||
const [mounted, setMounted] = useState(true);
|
||||
|
||||
const currentTheme = resolvedTheme ?? theme ?? "light";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user