add condition to show different page if sale not started yet
This commit is contained in:
parent
ff5f0d3046
commit
8cbd5a0950
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue