change style component

This commit is contained in:
Ehsan
2024-10-10 21:41:38 +03:30
parent 1749c9577f
commit fb0c02abd4
5 changed files with 32 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
import { Switch } from "@mui/material";
function SwitchTable() {
return (
<Switch
dir="ltr"
sx={
{
// "& .MuiSwitch-thumb": {
// width: "32px",
// height: "32px",
// },
// "& .MuiSwitch-track": {
// height: "24px",
// borderRadius: "28px",
// },
// "&.MuiSwitch-root": {
// width: "86px",
// },
}
}
/>
);
}
export default SwitchTable;
@@ -1,5 +1,4 @@
import { Button } from "@mui/material";
import React from "react";
import NotificationP from "@/components/icons/NotificationP";
import SettingP from "@/components/icons/SettingP";
import SearchHeaderP from "@/components/icons/SearchHeaderP";
+1 -1
View File
@@ -42,7 +42,7 @@ function Links({ open, setActive }) {
${
item.src === pathname
? "!bg-[#5559CE] dark:!bg-[#1F1D2B] dark-active-icon"
: " dark-deactive-icon"
: ""
}
`}
>
+2 -1
View File
@@ -3,6 +3,7 @@ import { Button, Switch, TableCell, TableRow } from "@mui/material";
import TextLoading from "@/app/component/loading/Text";
import TrashB from "@/components/icons/TrashB";
import EditB from "@/components/icons/EditB";
import SwitchTable from "@/app/component/SwitchTable";
function List({ data, loading }) {
const tableHead = ["ردیف", "شماره کارت", "شماره شبا", "بانک", "وضعیت", ""];
@@ -58,7 +59,7 @@ function List({ data, loading }) {
<p className="text-[16px] min-w-[60px] font-medium text-[#616161]">
{row.status ? "فعال" : "غیر فعال"}
</p>
<Switch dir="ltr" />
<SwitchTable />
</div>
</TextLoading>
</TableCell>
@@ -4,6 +4,8 @@ import { styleDefault } from "@/mui";
import CloseModalD from "@/components/icons/CloseModalD";
import ArrowLeftPA from "@/components/icons/ArrowLeftPA";
import Form from "./Form";
import PlusBlueP from "@/components/icons/PlusBlueP";
import AddLocationP from "@/components/icons/AddLocationP";
function ModalAddCard() {
const [open, setOpen] = useState(false);
@@ -27,7 +29,7 @@ function ModalAddCard() {
variant="contained"
>
اضافه کردن کارت
<ArrowLeftPA />
<AddLocationP />
</Button>
{/* Content Modal */}
<Modal open={open} onClose={handleClose}>