update modals & text & design

This commit is contained in:
Ehsan
2025-05-09 22:04:56 +03:30
parent 8ee3defdc0
commit a89fc4a3f9
7 changed files with 115 additions and 44 deletions
+6 -9
View File
@@ -1,25 +1,22 @@
import { TextField } from "@mui/material";
import { styleTextSelectRight } from "@/mui";
function Field({
title,
type,
dir,
// isPlaceHolder
}) {
function Field({ title, type, dir, value, updateState }) {
return (
<TextField
label={title}
dir={dir || "rtl"}
type={type || "text"}
value={value}
onChange={(e) => updateState(e.target.value)}
className="!w-full !mx-auto !bg-[#FFF]"
sx={{
...styleTextSelectRight,
// Hide Icon Number
"& input::-webkit-outer-spin-button, & input::-webkit-inner-spin-button":
{
display: "none",
},
{
display: "none",
},
"& input[type=number]": {
MozAppearance: "textfield",
},