home: remove hot, closing soon sections

This commit is contained in:
mantikoros 2022-01-27 14:23:55 -06:00
parent bb788d5201
commit 9acb07aa14

View File

@ -19,9 +19,6 @@ import FeedCreate from '../components/feed-create'
import { Spacer } from '../components/layout/spacer' import { Spacer } from '../components/layout/spacer'
import { Col } from '../components/layout/col' import { Col } from '../components/layout/col'
import { useUser } from '../hooks/use-user' import { useUser } from '../hooks/use-user'
import { ClosingSoonMarkets, HotMarkets } from './markets'
import { useContracts } from '../hooks/use-contracts'
import { useRecentComments } from '../hooks/use-comments'
export async function getStaticProps() { export async function getStaticProps() {
const [contracts, recentComments, hotContracts, closingSoonContracts] = const [contracts, recentComments, hotContracts, closingSoonContracts] =
@ -66,8 +63,8 @@ const Home = (props: {
activeContracts, activeContracts,
activeContractBets, activeContractBets,
activeContractComments, activeContractComments,
hotContracts, // hotContracts,
closingSoonContracts, // closingSoonContracts,
} = props } = props
const user = useUser() const user = useUser()
@ -94,11 +91,11 @@ const Home = (props: {
<FeedCreate user={user ?? undefined} /> <FeedCreate user={user ?? undefined} />
<Spacer h={4} /> <Spacer h={4} />
<HotMarkets contracts={hotContracts?.slice(0, 4) ?? []} /> {/* <HotMarkets contracts={hotContracts?.slice(0, 4) ?? []} />
<Spacer h={4} /> <Spacer h={4} />
<ClosingSoonMarkets contracts={closingSoonContracts ?? []} /> <ClosingSoonMarkets contracts={closingSoonContracts ?? []} />
<Spacer h={10} /> <Spacer h={10} /> */}
<ActivityFeed <ActivityFeed
contracts={activeContracts ?? []} contracts={activeContracts ?? []}