Skip to content

Commit

Permalink
Removed BrowserRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
sameepsi committed Dec 28, 2021
1 parent 12003c8 commit 9f0a847
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Suspense } from 'react';
import { createWeb3ReactRoot, Web3ReactProvider } from '@web3-react/core';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import { Switch, Route } from 'react-router-dom';
import {
ThemeProvider as MuiThemeProvider,
CssBaseline,
Expand Down Expand Up @@ -33,7 +33,6 @@ import 'slick-carousel/slick/slick-theme.css';
import './i18n';
import './App.css';
import { mainTheme } from './theme';
import AnalyticsTokenDetails from 'pages/AnalyticsPage/AnalyticTokenDetails';

const Web3ProviderNetwork = createWeb3ReactRoot(NetworkContextName);

Expand All @@ -45,12 +44,14 @@ const ThemeProvider: React.FC = ({ children }) => {

const Providers: React.FC = ({ children }) => {
return (
<div>
<Suspense fallback={null}>
<ThemeProvider>
<CssBaseline />
{children}
</ThemeProvider>
</Suspense>
</div>
);
};

Expand Down Expand Up @@ -126,11 +127,6 @@ const App: React.FC = () => {
<AnalyticsPage />
</PageLayout>
</Route>
<Route exact path='/analytics/token/:id'>
<PageLayout>
<AnalyticsTokenDetails />
</PageLayout>
</Route>
</Switch>
</Web3ReactManager>
</Gelato>
Expand Down

0 comments on commit 9f0a847

Please sign in to comment.