From 551dfa0a5641329fbba6d3a4619d47fc270bf9b5 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Sat, 3 May 2025 11:58:06 +0330 Subject: [PATCH] toast --- src/App.tsx | 2 +- src/components/Button.tsx | 2 +- src/components/Toast.tsx | 58 +++++++++++++++++++ src/pages/auth/components/LoginStep1.tsx | 9 ++- src/pages/auth/components/LoginStep2.tsx | 8 +-- src/pages/auth/components/LoginStep3.tsx | 4 +- src/pages/criticisms/Add.tsx | 8 +-- src/pages/notification/Notification.tsx | 4 +- src/pages/profile/Profile.tsx | 14 ++--- src/pages/profile/components/Email.tsx | 6 +- src/pages/profile/components/Phone.tsx | 8 +-- src/pages/profile/components/Username.tsx | 6 +- src/pages/service/BuyService.tsx | 6 +- src/pages/service/components/CreateReview.tsx | 5 +- .../setting/components/ChangePassword.tsx | 8 +-- src/pages/ticket/CreateTicket.tsx | 8 +-- src/pages/ticket/Detail.tsx | 12 ++-- src/pages/wallet/components/CardtoCard.tsx | 6 +- src/pages/wallet/components/Online.tsx | 10 ++-- src/pages/wallet/components/Sheba.tsx | 6 +- 20 files changed, 124 insertions(+), 66 deletions(-) create mode 100644 src/components/Toast.tsx diff --git a/src/App.tsx b/src/App.tsx index 1825441..4e69d87 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,7 +7,7 @@ import 'react-loading-skeleton/dist/skeleton.css' import i18next from 'i18next' import { I18nextProvider } from 'react-i18next' import { QueryCache, QueryClient, QueryClientProvider } from '@tanstack/react-query' -import { ToastContainer } from 'react-toastify' +import ToastContainer from './components/Toast' import FaJson from './langs/fa.json' import { IApiErrorRepsonse } from './types/error.types' diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 9b33f66..3b7879a 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -19,7 +19,7 @@ const Button: FC = memo((props: Props) => { ); return ( -