From ef97779a8461ca5c4a523f1691a6bfa90b452da9 Mon Sep 17 00:00:00 2001 From: armaniferrante Date: Sat, 15 May 2021 16:16:28 -0700 Subject: [PATCH] Use memoized token map --- src/App.tsx | 38 ++++++++++----------- src/swap/components/Info.tsx | 22 +++++-------- src/swap/components/Settings.tsx | 16 ++++----- src/swap/components/Swap.tsx | 16 ++++----- src/swap/components/TokenDialog.tsx | 40 ++++++++++++----------- src/swap/components/context/Dex.tsx | 16 ++++----- src/swap/components/context/TokenList.tsx | 30 ++++++++++++----- 7 files changed, 92 insertions(+), 86 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5d760b8..f8fc76f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,25 +24,9 @@ import "./App.css"; // to the `Swap` component, and then everything else is taken care of. function App() { return ( -
- - - -
+ + + ); } @@ -106,7 +90,21 @@ function AppInner() { }, [wallet, enqueueSnackbar]); return ( -
+