fix bug error console
This commit is contained in:
@@ -23,7 +23,12 @@ function Theme() {
|
|||||||
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
>
|
>
|
||||||
{theme === "light" ? <MoonP /> : <Sun />}
|
<div className="block dark:hidden">
|
||||||
|
<MoonP />
|
||||||
|
</div>
|
||||||
|
<div className="hidden dark:block">
|
||||||
|
<Sun />
|
||||||
|
</div>
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Button } from "@mui/material";
|
import { Button } from "@mui/material";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import MoonP from "@/components/icons/MoonP";
|
|
||||||
import NotificationP from "@/components/icons/NotificationP";
|
import NotificationP from "@/components/icons/NotificationP";
|
||||||
import SettingP from "@/components/icons/SettingP";
|
import SettingP from "@/components/icons/SettingP";
|
||||||
import SearchHeaderP from "@/components/icons/SearchHeaderP";
|
import SearchHeaderP from "@/components/icons/SearchHeaderP";
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import TrashOrangeD from "@/components/icons/TrashOrangeD";
|
|
||||||
import { Box, Button, Modal } from "@mui/material";
|
import { Box, Button, Modal } from "@mui/material";
|
||||||
import { styleDefault } from "@/mui";
|
import { styleDefault } from "@/mui";
|
||||||
import CloseModalD from "@/components/icons/CloseModalD";
|
import CloseModalD from "@/components/icons/CloseModalD";
|
||||||
|
|||||||
Reference in New Issue
Block a user