mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
fixes, update Nav images on theme toggle
This commit is contained in:
@@ -13,15 +13,6 @@ inject();
|
||||
export default function App() {
|
||||
const { isMobile } = useMediaQuery();
|
||||
const [navOpen, setNavOpen] = useState(!isMobile);
|
||||
const selectedTheme = localStorage.getItem('selectedTheme');
|
||||
useEffect(()=>{
|
||||
if (selectedTheme === 'Dark') {
|
||||
document.documentElement.classList.add('dark');
|
||||
document.body.classList.add('dark:bg-raisin-black');
|
||||
} else {
|
||||
document.documentElement.classList.remove('dark');
|
||||
}
|
||||
},[])
|
||||
return (
|
||||
<div className="min-h-full min-w-full dark:bg-raisin-black">
|
||||
<Navigation navOpen={navOpen} setNavOpen={setNavOpen} />
|
||||
|
||||
Reference in New Issue
Block a user