Surface a list of tags on /home

This commit is contained in:
Austin Chen 2022-02-03 11:00:49 -08:00
parent 193b9ae6bf
commit 426d41ba44

View File

@ -16,6 +16,8 @@ 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 { useContracts } from '../hooks/use-contracts' import { useContracts } from '../hooks/use-contracts'
import { FoldTag, TagsList } from '../components/tags-list'
import { Row } from '../components/layout/row'
export async function getStaticProps() { export async function getStaticProps() {
const [contracts, recentComments, recentBets] = await Promise.all([ const [contracts, recentComments, recentBets] = await Promise.all([
@ -77,6 +79,20 @@ const Home = (props: {
<Col className="max-w-3xl"> <Col className="max-w-3xl">
<FeedCreate user={user ?? undefined} /> <FeedCreate user={user ?? undefined} />
<Spacer h={4} /> <Spacer h={4} />
<TagsList
className="mx-2"
tags={[
'#politics',
'#crypto',
'#covid',
'#sports',
'#meta',
'#science',
]}
/>
<Spacer h={4} />
<ActivityFeed <ActivityFeed
contracts={updatedContracts} contracts={updatedContracts}
contractBets={activeContractBets} contractBets={activeContractBets}