From 9d180e1367e66b6fa6097140c8972ecf49eea57e Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Sat, 29 Aug 2020 19:12:35 -0700 Subject: [PATCH] Fix warnings --- src/App.js | 11 ++++------- src/pages/TradePage.jsx | 6 ------ src/routes.js | 2 +- src/utils/markets.js | 3 +-- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/App.js b/src/App.js index 6e8c40e..a6b15b9 100644 --- a/src/App.js +++ b/src/App.js @@ -3,11 +3,10 @@ import './App.less'; import { ConnectionProvider } from './utils/connection'; import { MarketProvider } from './utils/markets'; import { WalletProvider } from './utils/wallet'; -import TradePage from './pages/TradePage'; -import BasicLayout from './components/BasicLayout'; import { GlobalStyle } from './global_style'; import { Spin } from 'antd'; import ErrorBoundary from './components/ErrorBoundary'; +import { Routes } from './routes'; export default function App() { return ( @@ -17,11 +16,9 @@ export default function App() { - - }> - - - + }> + + diff --git a/src/pages/TradePage.jsx b/src/pages/TradePage.jsx index 4aeddc9..b158be3 100644 --- a/src/pages/TradePage.jsx +++ b/src/pages/TradePage.jsx @@ -8,7 +8,6 @@ import { useMarket, useMarketsList } from '../utils/markets'; import TradeForm from '../components/TradeForm'; import { useLocalStorageState } from '../utils/utils'; import TradesTable from '../components/TradesTable'; -import { InfoCircleOutlined } from '@ant-design/icons'; const { Option } = Select; @@ -39,7 +38,6 @@ export default function TradePage() { 'submittedPassword5', false, ); - const [marketInfoVisible, setMarketInfoVisible] = useState(false); const [password, setPassword] = useState('password'); const [dimensions, setDimensions] = useState({ height: window.innerHeight, @@ -107,10 +105,6 @@ export default function TradePage() { - setMarketInfoVisible(true)} - />