diff --git a/components/icons/EditB.js b/components/icons/EditB.js new file mode 100644 index 0000000..0352f15 --- /dev/null +++ b/components/icons/EditB.js @@ -0,0 +1,38 @@ +function EditB() { + return ( + + + + + + ); +} + +export default EditB; diff --git a/components/icons/TrashB.js b/components/icons/TrashB.js new file mode 100644 index 0000000..16c93f2 --- /dev/null +++ b/components/icons/TrashB.js @@ -0,0 +1,49 @@ +function TrashB() { + return ( + + + + + + + + ); +} + +export default TrashB; diff --git a/components/panel/userAccount/bank/List.js b/components/panel/userAccount/bank/List.js index 5f54b16..d6bab28 100644 --- a/components/panel/userAccount/bank/List.js +++ b/components/panel/userAccount/bank/List.js @@ -1,9 +1,99 @@ -import React from 'react' +import CustomTable from "@/app/component/CustomTable"; +import { Button, Switch, TableCell, TableRow } from "@mui/material"; +import Image from "next/image"; +import TextLoading from "@/app/component/loading/Text"; +import CustomLoading from "@/app/component/loading/Custom"; +import CircularLoading from "@/app/component/loading/Circular"; +import TrashB from "@/components/icons/TrashB"; +import EditB from "@/components/icons/EditB"; + +function List({ data, loading }) { + const tableHead = [ + "ردیف", + "شناسه", + "نام پزشک", + "تاریخ", + "ساعت", + "مبلغ (تومان)", + "وضعیت", + ]; + const centerTable = [0, 4, 5]; -function List() { return ( -
List
- ) +
+
+ + {data.map((row, idx) => ( + + + + {idx + 1} + + + + + {row.card_number} + + + + + {row.shaba_number} + + + + + {row.bank} + + + + + {row.status ? "فعال" : "غیر فعال"} + + + + + + + + + +
+ + +
+
+
+
+ ))} +
+
+
+ ); } -export default List \ No newline at end of file +export default List; diff --git a/components/panel/userAccount/bank/index.js b/components/panel/userAccount/bank/index.js index 70c69b9..3fa0801 100644 --- a/components/panel/userAccount/bank/index.js +++ b/components/panel/userAccount/bank/index.js @@ -2,12 +2,10 @@ import Head from "./head"; import List from "./List"; function Bank({ data }) { - console.log(data); - return (
- +
); }