From 66d3395f59c03d97cd439b9101776e675c730cf1 Mon Sep 17 00:00:00 2001 From: Ehsan Date: Thu, 10 Oct 2024 02:50:58 +0330 Subject: [PATCH] create data bank and component list --- app/panel/(layout)/user-account/page.js | 3 ++- components/panel/userAccount/bank/List.js | 9 +++++++++ components/panel/userAccount/bank/index.js | 6 +++++- components/panel/userAccount/index.js | 4 ++-- data/bank.json | 20 ++++++++++++++++++++ 5 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 components/panel/userAccount/bank/List.js create mode 100644 data/bank.json diff --git a/app/panel/(layout)/user-account/page.js b/app/panel/(layout)/user-account/page.js index 5335308..b4582b0 100644 --- a/app/panel/(layout)/user-account/page.js +++ b/app/panel/(layout)/user-account/page.js @@ -1,8 +1,9 @@ import UserAccountPage from "@/components/panel/userAccount"; import Information from "@/data/information.json"; +import Bank from "@/data/bank.json"; function UserAccount() { - return ; + return ; } export default UserAccount; diff --git a/components/panel/userAccount/bank/List.js b/components/panel/userAccount/bank/List.js new file mode 100644 index 0000000..5f54b16 --- /dev/null +++ b/components/panel/userAccount/bank/List.js @@ -0,0 +1,9 @@ +import React from 'react' + +function List() { + return ( +
List
+ ) +} + +export default List \ No newline at end of file diff --git a/components/panel/userAccount/bank/index.js b/components/panel/userAccount/bank/index.js index 2f2a1e4..70c69b9 100644 --- a/components/panel/userAccount/bank/index.js +++ b/components/panel/userAccount/bank/index.js @@ -1,9 +1,13 @@ import Head from "./head"; +import List from "./List"; + +function Bank({ data }) { + console.log(data); -function Bank() { return (
+
); } diff --git a/components/panel/userAccount/index.js b/components/panel/userAccount/index.js index fdea3fa..3cf9546 100644 --- a/components/panel/userAccount/index.js +++ b/components/panel/userAccount/index.js @@ -7,12 +7,12 @@ import Tab from "./Tab"; const listTab = ["حساب کاربری", "حساب بانکی"]; -function UserAccountPage() { +function UserAccountPage({data}) { const [value, setValue] = useState(1); const handleChange = (event, newValue) => setValue(newValue); - const components = [, ]; + const components = [, ]; return (