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