From 75a5149a8d2f755eaab79337ea913234e43e887b Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sun, 22 Dec 2024 16:59:53 +0330 Subject: [PATCH] fix bug --- src/App.tsx | 2 +- src/components/common/button.tsx | 2 +- src/components/common/input.tsx | 5 +- src/components/home/imei.tsx | 8 +- .../management-bank-accounts/bank-cart.tsx | 20 +- .../edit-cart-dialog.tsx | 98 ++++ src/components/my-account/index.tsx | 29 +- src/components/ui/dashboard/sidebar-item.tsx | 2 +- src/components/ui/dashboard/sidebar.tsx | 4 +- src/components/wallet/wallet-address.tsx | 4 +- src/index.css | 98 ++-- src/schema/index.ts | 295 ++++++++---- src/services/api/bank-card.ts | 24 +- src/services/axios/index.ts | 17 +- src/store/user.ts | 98 ++-- src/types/index.ts | 455 +++++++++--------- src/utility/sidebar.tsx | 36 +- 17 files changed, 705 insertions(+), 492 deletions(-) create mode 100644 src/components/management-bank-accounts/edit-cart-dialog.tsx diff --git a/src/App.tsx b/src/App.tsx index 4663553..558e42b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,7 +16,7 @@ function App() { const handleGetUsersInformation = async () => { await userMutate({}, { onSuccess: (res: any) => { - updateUser(res?.data) + updateUser(res?.data?.user) }, onError: (err: any) => handleError(err) }) diff --git a/src/components/common/button.tsx b/src/components/common/button.tsx index ed1e186..e373ad0 100644 --- a/src/components/common/button.tsx +++ b/src/components/common/button.tsx @@ -14,7 +14,7 @@ type Props = { export const ButtonComponent: FC = ({ title, type = "button", pending = false, theme = "primary", onClick, disable = false, className }) => { return ( -