change fields component & handle edit, delete, add data and save & change functional page doctor

This commit is contained in:
Ehsan
2025-07-02 01:58:44 +03:30
parent 43eb9c2b78
commit 04d3e38859
22 changed files with 290 additions and 313 deletions
+4 -3
View File
@@ -4,7 +4,7 @@ import { styleTextSelectRight } from "@/mui";
function Field({
title,
error,
spaceNull,
placeholder,
inputProps,
type,
dir,
@@ -21,6 +21,7 @@ function Field({
onChange={(e) => updateState(e.target.value)}
className="!w-full !mx-auto !bg-[#FFF]"
InputProps={inputProps}
placeholder={placeholder || ""}
sx={{
".MuiOutlinedInput-notchedOutline.muirtl-1d3z3hw-MuiOutlinedInput-notchedOutline":
{
@@ -36,8 +37,8 @@ function Field({
MozAppearance: "textfield",
},
"& .MuiInputBase-input": {
padding: spaceNull ? "12.5px 0" : "12.5px 14px",
color: spaceNull && "#0009",
padding: "12.5px 14px",
color: "#0009",
},
"& .MuiInputBase-root": { borderRadius: "6px !important" },
"& .MuiOutlinedInput-notchedOutline": {