Update App.js

This commit is contained in:
Daniel
2022-11-05 11:51:50 +01:00
parent 9d0aa5b74a
commit e167461ab9

View File

@@ -9,7 +9,7 @@ import { Exchange, Loader, WalletButton } from "./components";
const App = () => { const App = () => {
const { account } = useEthers(); const { account } = useEthers();
const poolsLoading = false; const [poolsLoading, pools] = usePools();
return ( return (
<div className={styles.container}> <div className={styles.container}>
@@ -29,9 +29,9 @@ const App = () => {
<div className="green_gradient" /> <div className="green_gradient" />
<div className={styles.exchange}> <div className={styles.exchange}>
{account ? ( {account ? (
poolsLoading ? ( loading ? (
<Loader title="Loading pools, please wait!" /> <Loader title="Loading pools, please wait!" />
) : <Exchange /> ) : <Exchange pools = {pools}/>
) : <Loader title="Please connect your wallet!"/>} ) : <Loader title="Please connect your wallet!"/>}
</div> </div>
<div className="blue_gradient" /> <div className="blue_gradient" />