Make home communities look better on mobile. Add Covid & AI.
This commit is contained in:
parent
00f632ec47
commit
ca89fd158d
|
@ -63,14 +63,15 @@ export function FoldTag(props: { fold: { slug: string; name: string } }) {
|
||||||
|
|
||||||
export function FoldTagList(props: {
|
export function FoldTagList(props: {
|
||||||
folds: { slug: string; name: string }[]
|
folds: { slug: string; name: string }[]
|
||||||
|
noLabel?: boolean
|
||||||
className?: string
|
className?: string
|
||||||
}) {
|
}) {
|
||||||
const { folds, className } = props
|
const { folds, noLabel, className } = props
|
||||||
return (
|
return (
|
||||||
<Row className={clsx('flex-wrap gap-2 items-center', className)}>
|
<Row className={clsx('flex-wrap gap-2 items-center', className)}>
|
||||||
{folds.length > 0 && (
|
{folds.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className="text-gray-500 mr-1">Communities</div>
|
{!noLabel && <div className="text-gray-500 mr-1">Communities</div>}
|
||||||
{folds.map((fold) => (
|
{folds.map((fold) => (
|
||||||
<FoldTag key={fold.slug} fold={fold} />
|
<FoldTag key={fold.slug} fold={fold} />
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -112,15 +112,6 @@ const Home = (props: { contracts: Contract[]; folds: Fold[] }) => {
|
||||||
)
|
)
|
||||||
: []
|
: []
|
||||||
|
|
||||||
console.log({
|
|
||||||
followedFoldIds,
|
|
||||||
followedFolds,
|
|
||||||
yourBetContracts,
|
|
||||||
feedContracts,
|
|
||||||
feedBets,
|
|
||||||
feedComments,
|
|
||||||
})
|
|
||||||
|
|
||||||
if (user === null) {
|
if (user === null) {
|
||||||
Router.replace('/')
|
Router.replace('/')
|
||||||
return <></>
|
return <></>
|
||||||
|
@ -132,13 +123,17 @@ const Home = (props: { contracts: Contract[]; folds: Fold[] }) => {
|
||||||
<Col className="max-w-3xl w-full">
|
<Col className="max-w-3xl w-full">
|
||||||
<FeedCreate user={user ?? undefined} />
|
<FeedCreate user={user ?? undefined} />
|
||||||
<Spacer h={6} />
|
<Spacer h={6} />
|
||||||
|
<div className="text-lg text-gray-500 px-3 pb-4">Communities</div>
|
||||||
<FoldTagList
|
<FoldTagList
|
||||||
className="mx-2"
|
className="mx-2"
|
||||||
|
noLabel
|
||||||
folds={[
|
folds={[
|
||||||
{ name: 'Politics', slug: 'politics' },
|
{ name: 'Politics', slug: 'politics' },
|
||||||
{ name: 'Crypto', slug: 'crypto' },
|
{ name: 'Crypto', slug: 'crypto' },
|
||||||
{ name: 'Sports', slug: 'sports' },
|
{ name: 'Sports', slug: 'sports' },
|
||||||
{ name: 'Science', slug: 'science' },
|
{ name: 'Science', slug: 'science' },
|
||||||
|
{ name: 'Covid', slug: 'covid' },
|
||||||
|
{ name: 'AI', slug: 'ai' },
|
||||||
{
|
{
|
||||||
name: 'Manifold Markets',
|
name: 'Manifold Markets',
|
||||||
slug: 'manifold-markets',
|
slug: 'manifold-markets',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user