fix bug error console

This commit is contained in:
Ehsan
2024-10-10 20:27:15 +03:30
parent 81e07a5f43
commit 39584bf78c
3 changed files with 6 additions and 3 deletions
+6 -1
View File
@@ -23,7 +23,12 @@ function Theme() {
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
variant="outlined"
>
{theme === "light" ? <MoonP /> : <Sun />}
<div className="block dark:hidden">
<MoonP />
</div>
<div className="hidden dark:block">
<Sun />
</div>
</Button>
);
}
@@ -1,6 +1,5 @@
import { Button } from "@mui/material";
import React from "react";
import MoonP from "@/components/icons/MoonP";
import NotificationP from "@/components/icons/NotificationP";
import SettingP from "@/components/icons/SettingP";
import SearchHeaderP from "@/components/icons/SearchHeaderP";
@@ -1,5 +1,4 @@
import { useState } from "react";
import TrashOrangeD from "@/components/icons/TrashOrangeD";
import { Box, Button, Modal } from "@mui/material";
import { styleDefault } from "@/mui";
import CloseModalD from "@/components/icons/CloseModalD";