From c319211a3af1619704bb228f979c092b482f3303 Mon Sep 17 00:00:00 2001
From: gary <1032230992@qq.com>
Date: Fri, 13 May 2022 15:55:34 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9providers?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/ConfigProviders.tsx | 14 --------------
src/Providers.tsx | 13 +++++++++++--
2 files changed, 11 insertions(+), 16 deletions(-)
delete mode 100644 src/ConfigProviders.tsx
diff --git a/src/ConfigProviders.tsx b/src/ConfigProviders.tsx
deleted file mode 100644
index ae8b908..0000000
--- a/src/ConfigProviders.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from 'react'
-import { ConfigProvider, ModalProvider } from '@pancakeswap/uikit'
-import { useTranslation } from 'contexts/Localization'
-
-const ConfigProviders: React.FC = ({ children }) => {
- const { t } = useTranslation()
- return (
-
- {children}
-
- )
-}
-
-export default ConfigProviders
diff --git a/src/Providers.tsx b/src/Providers.tsx
index cfa4a14..ec3dcc6 100644
--- a/src/Providers.tsx
+++ b/src/Providers.tsx
@@ -3,12 +3,21 @@ import { Web3ReactProvider } from '@web3-react/core'
import { HelmetProvider } from 'react-helmet-async'
import { Provider } from 'react-redux'
import { getLibrary } from 'utils/web3React'
+import { ConfigProvider, ModalProvider } from '@pancakeswap/uikit'
import { ThemeContextProvider } from 'contexts/ThemeContext'
-import { LanguageProvider } from 'contexts/Localization'
+import { LanguageProvider, useTranslation } from 'contexts/Localization'
import { RefreshContextProvider } from 'contexts/RefreshContext'
import { ToastsProvider } from 'contexts/ToastsContext'
import store from 'state'
-import ConfigProviders from './ConfigProviders'
+
+const ConfigProviders: React.FC = ({ children }) => {
+ const { t } = useTranslation()
+ return (
+
+ {children}
+
+ )
+}
const Providers: React.FC = ({ children }) => {
return (