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