1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

coin selection todo

This commit is contained in:
Matthias Kretschmann 2020-10-07 13:59:20 +02:00
parent 5eef2275fe
commit 6949547043
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -82,6 +82,10 @@ export default function Add({
setAmount(coin === 'OCEAN' ? balance.ocean : dtBalance)
}
// TODO: this is only a prototype and is an accessibility nightmare.
// Needs to be refactored to either use custom select element instead of tippy.js,
// or use <button> in this implementation.
// Also needs to be closed when users click an option.
const CoinSelect = () => (
<ul className={styles.coinPopover}>
<li onClick={() => setCoin('OCEAN')}>OCEAN</li>