diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx
index 0beedc1b..a7c22d80 100644
--- a/web/components/contract-search.tsx
+++ b/web/components/contract-search.tsx
@@ -88,6 +88,7 @@ export function ContractSearch(props: {
useQueryUrlParam?: boolean
isWholePage?: boolean
noControls?: boolean
+ maxResults?: number
renderContracts?: (
contracts: Contract[] | undefined,
loadMore: () => void
@@ -107,6 +108,7 @@ export function ContractSearch(props: {
useQueryUrlParam,
isWholePage,
noControls,
+ maxResults,
renderContracts,
} = props
@@ -189,7 +191,8 @@ export function ContractSearch(props: {
const contracts = state.pages
.flat()
.filter((c) => !additionalFilter?.excludeContractIds?.includes(c.id))
- const renderedContracts = state.pages.length === 0 ? undefined : contracts
+ const renderedContracts =
+ state.pages.length === 0 ? undefined : contracts.slice(0, maxResults)
if (IS_PRIVATE_MANIFOLD || process.env.NEXT_PUBLIC_FIREBASE_EMULATE) {
return
diff --git a/web/components/contract/prob-change-table.tsx b/web/components/contract/prob-change-table.tsx
index 5d585343..f973d260 100644
--- a/web/components/contract/prob-change-table.tsx
+++ b/web/components/contract/prob-change-table.tsx
@@ -30,7 +30,7 @@ export function ProbChangeTable(props: { userId: string | undefined }) {
return (
-
+
{filteredChanges.slice(0, count / 2).map((contract) => (
diff --git a/web/components/double-carousel.tsx b/web/components/double-carousel.tsx
index a3d3759c..12538cf7 100644
--- a/web/components/double-carousel.tsx
+++ b/web/components/double-carousel.tsx
@@ -7,7 +7,6 @@ import { Col } from 'web/components/layout/col'
export function DoubleCarousel(props: {
contracts: Contract[]
- seeMoreUrl?: string
showTime?: ShowTime
loadMore?: () => void
}) {
diff --git a/web/pages/experimental/home/index.tsx b/web/pages/experimental/home/index.tsx
index 1d1609a1..eaab6383 100644
--- a/web/pages/experimental/home/index.tsx
+++ b/web/pages/experimental/home/index.tsx
@@ -5,6 +5,7 @@ import {
PlusSmIcon,
ArrowSmRightIcon,
} from '@heroicons/react/solid'
+import clsx from 'clsx'
import { Page } from 'web/components/page'
import { Col } from 'web/components/layout/col'
@@ -16,12 +17,9 @@ import { track } from 'web/lib/service/analytics'
import { useSaveReferral } from 'web/hooks/use-save-referral'
import { Sort } from 'web/components/contract-search'
import { Group } from 'common/group'
-import { LoadingIndicator } from 'web/components/loading-indicator'
import { SiteLink } from 'web/components/site-link'
import { useUser } from 'web/hooks/use-user'
import { useMemberGroups } from 'web/hooks/use-group'
-import { DoubleCarousel } from '../../../components/double-carousel'
-import clsx from 'clsx'
import { Button } from 'web/components/button'
import { ArrangeHome, getHomeItems } from '../../../components/arrange-home'
import { Title } from 'web/components/title'
@@ -56,7 +54,7 @@ const Home = () => {
return (
-
+
@@ -146,23 +144,8 @@ function SearchSection(props: {
defaultSort={sort}
additionalFilter={yourBets ? { yourBets: true } : undefined}
noControls
- // persistPrefix={`experimental-home-${sort}`}
- renderContracts={(contracts, loadMore) =>
- contracts ? (
-
- ) : (
-
- )
- }
+ maxResults={6}
+ persistPrefix={`experimental-home-${sort}`}
/>
)
@@ -185,22 +168,8 @@ function GroupSection(props: { group: Group; user: User | null | undefined }) {
defaultSort={'score'}
additionalFilter={{ groupSlug: group.slug }}
noControls
- // persistPrefix={`experimental-home-${group.slug}`}
- renderContracts={(contracts, loadMore) =>
- contracts ? (
- contracts.length == 0 ? (
- No open markets
- ) : (
-
- )
- ) : (
-
- )
- }
+ maxResults={6}
+ persistPrefix={`experimental-home-${group.slug}`}
/>
)