From 429646f883f497e2ee13070df7f76c3c21c20c58 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 5 Nov 2022 13:23:33 +0100 Subject: [PATCH] Update AmountIn.js --- packages/react-app/src/components/AmountIn.js | 81 +++++++++---------- 1 file changed, 40 insertions(+), 41 deletions(-) diff --git a/packages/react-app/src/components/AmountIn.js b/packages/react-app/src/components/AmountIn.js index da8d4bf..9de20ba 100644 --- a/packages/react-app/src/components/AmountIn.js +++ b/packages/react-app/src/components/AmountIn.js @@ -19,49 +19,48 @@ const AmountIn = () => { return(
- typeof onChange === "function" && onChange(e.target.value)} - className={styles.amountInput} + typeof onChange === "function" && onChange(e.target.value)} + className={styles.amountInput} + /> + +
setShowList(!showList)}> + - - {showList && ( -
    - {Object.entries(currencies).map(([token, tokenName], index) => ( -
  • { - if (typeof onSelect === "function") onSelect(token); - setActiveCurrency(tokenName); - setShowList(false); - }} - > - {tokenName} -
  • - ))} -
- )} - - -
+ + + {showList && ( + + )}
+ ) }