add condition to show different page if sale not started yet

This commit is contained in:
Maximilian Schneider 2021-07-22 21:01:33 +02:00
parent ff5f0d3046
commit 8cbd5a0950
1 changed files with 3 additions and 2 deletions

View File

@ -7,14 +7,15 @@ import usePool from '../hooks/usePool'
import FooterSection from '../components/FooterSection'
const Index = () => {
const { endIdo } = usePool()
const { startIdo, endIdo } = usePool()
return (
<div className={`bg-bkg-1 text-white transition-all overflow-hidden`}>
<div className="w-screen h-2 bg-gradient-to-r from-mango-red via-mango-yellow to-mango-green"></div>
<NavBarBeta />
<Notifications />
{endIdo?.isAfter() && <ContributionPage />}
{startIdo?.isAfter() && <ContributionPage />}
{startIdo?.isBefore && endIdo?.isAfter() && <ContributionPage />}
{endIdo?.isBefore() && <RedeemPage />}
<FooterSection />
<div className="w-screen h-2 bg-gradient-to-r from-mango-red via-mango-yellow to-mango-green"></div>