design dark mode turns & add-doctor & account & layout and components MUI

This commit is contained in:
Ehsan
2024-10-01 19:05:36 +03:30
parent 124b25f87c
commit c29c787f09
19 changed files with 361 additions and 85 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import MoonP from "@/components/icons/MoonP";
import Sun from "@/components/icons/Sun";
import { Button } from "@mui/material";
import { useTheme } from "next-themes";
import { useState } from "react";
@@ -22,7 +23,7 @@ function Theme() {
onClick={() => setTheme(theme === "light" ? "dark" : "light")}
variant="outlined"
>
<MoonP />
{theme === "light" ? <MoonP /> : <Sun />}
</Button>
);
}