From 6f5190525533c65e55d42a84b6e1c4b9281b48b8 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Fri, 11 Oct 2024 01:44:07 +0330 Subject: [PATCH] change component design --- app/component/SwitchTable.js | 3 +- components/icons/PlusB.js | 28 +++++++++++++++++++ components/panel/userAccount/account/index.js | 4 +-- components/panel/userAccount/bank/List.js | 2 +- .../bank/head/modal/ModalAddCard.js | 6 ++-- components/panel/userAccount/bank/index.js | 2 +- 6 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 components/icons/PlusB.js diff --git a/app/component/SwitchTable.js b/app/component/SwitchTable.js index 501f6cb..ba93e99 100644 --- a/app/component/SwitchTable.js +++ b/app/component/SwitchTable.js @@ -1,9 +1,10 @@ import { Switch } from "@mui/material"; -function SwitchTable() { +function SwitchTable({ value }) { return ( + + + + ); +} + +export default PlusB; diff --git a/components/panel/userAccount/account/index.js b/components/panel/userAccount/account/index.js index bb50158..97f69e0 100644 --- a/components/panel/userAccount/account/index.js +++ b/components/panel/userAccount/account/index.js @@ -3,10 +3,10 @@ import Head from "./Head"; function Account() { return ( - <> +
- +
); } diff --git a/components/panel/userAccount/bank/List.js b/components/panel/userAccount/bank/List.js index 8e2f11b..9ada62b 100644 --- a/components/panel/userAccount/bank/List.js +++ b/components/panel/userAccount/bank/List.js @@ -59,7 +59,7 @@ function List({ data, loading }) {

{row.status ? "فعال" : "غیر فعال"}

- + diff --git a/components/panel/userAccount/bank/head/modal/ModalAddCard.js b/components/panel/userAccount/bank/head/modal/ModalAddCard.js index 40e7d9b..1344aa5 100644 --- a/components/panel/userAccount/bank/head/modal/ModalAddCard.js +++ b/components/panel/userAccount/bank/head/modal/ModalAddCard.js @@ -2,10 +2,8 @@ import { useState } from "react"; import { Box, Button, Modal } from "@mui/material"; 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"; +import PlusB from "@/components/icons/PlusB"; function ModalAddCard() { const [open, setOpen] = useState(false); @@ -28,8 +26,8 @@ function ModalAddCard() { onClick={handleOpen} variant="contained" > + اضافه کردن کارت - {/* Content Modal */} diff --git a/components/panel/userAccount/bank/index.js b/components/panel/userAccount/bank/index.js index 3fa0801..989a3c2 100644 --- a/components/panel/userAccount/bank/index.js +++ b/components/panel/userAccount/bank/index.js @@ -3,7 +3,7 @@ import List from "./List"; function Bank({ data }) { return ( -
+