2022-01-25 20:47:25 +00:00
|
|
|
import _ from 'lodash'
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
|
|
|
import { Fold } from '../../../../common/fold'
|
|
|
|
import { Comment } from '../../../../common/comment'
|
|
|
|
import { Page } from '../../../components/page'
|
|
|
|
import { Title } from '../../../components/title'
|
2022-03-02 02:08:44 +00:00
|
|
|
import { Bet, listAllBets } from '../../../lib/firebase/bets'
|
2022-01-25 20:47:25 +00:00
|
|
|
import { Contract } from '../../../lib/firebase/contracts'
|
|
|
|
import {
|
|
|
|
foldPath,
|
|
|
|
getFoldBySlug,
|
|
|
|
getFoldContracts,
|
|
|
|
} from '../../../lib/firebase/folds'
|
2022-03-14 20:29:32 +00:00
|
|
|
import { ActivityFeed } from '../../../components/feed/activity-feed'
|
2022-01-25 20:47:25 +00:00
|
|
|
import { TagsList } from '../../../components/tags-list'
|
|
|
|
import { Row } from '../../../components/layout/row'
|
|
|
|
import { UserLink } from '../../../components/user-page'
|
|
|
|
import { getUser, User } from '../../../lib/firebase/users'
|
|
|
|
import { Spacer } from '../../../components/layout/spacer'
|
|
|
|
import { Col } from '../../../components/layout/col'
|
|
|
|
import { useUser } from '../../../hooks/use-user'
|
|
|
|
import { useFold } from '../../../hooks/use-fold'
|
|
|
|
import { SearchableGrid } from '../../../components/contracts-list'
|
|
|
|
import { useQueryAndSortParams } from '../../../hooks/use-sort-and-query-params'
|
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
import clsx from 'clsx'
|
2022-02-01 18:59:51 +00:00
|
|
|
import { scoreCreators, scoreTraders } from '../../../../common/scoring'
|
2022-01-25 20:47:25 +00:00
|
|
|
import { Leaderboard } from '../../../components/leaderboard'
|
2022-01-30 21:51:30 +00:00
|
|
|
import { formatMoney, toCamelCase } from '../../../../common/util/format'
|
2022-03-17 07:56:25 +00:00
|
|
|
import { EditFoldButton } from '../../../components/folds/edit-fold-button'
|
2022-01-25 21:44:28 +00:00
|
|
|
import Custom404 from '../../404'
|
2022-03-17 07:56:25 +00:00
|
|
|
import { FollowFoldButton } from '../../../components/folds/follow-fold-button'
|
2022-01-27 18:45:35 +00:00
|
|
|
import FeedCreate from '../../../components/feed-create'
|
2022-01-28 18:34:13 +00:00
|
|
|
import { SEO } from '../../../components/SEO'
|
2022-01-31 04:12:12 +00:00
|
|
|
import { useTaggedContracts } from '../../../hooks/use-contracts'
|
2022-02-10 20:57:41 +00:00
|
|
|
import { Linkify } from '../../../components/linkify'
|
2022-03-09 02:43:30 +00:00
|
|
|
import { fromPropz, usePropz } from '../../../hooks/use-propz'
|
2022-03-01 20:40:46 +00:00
|
|
|
import { filterDefined } from '../../../../common/util/array'
|
2022-03-05 00:06:11 +00:00
|
|
|
import { useRecentBets } from '../../../hooks/use-bets'
|
|
|
|
import { useRecentComments } from '../../../hooks/use-comments'
|
|
|
|
import { LoadingIndicator } from '../../../components/loading-indicator'
|
2022-03-14 20:29:32 +00:00
|
|
|
import { findActiveContracts } from '../../../components/feed/find-active-contracts'
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-03-09 02:43:30 +00:00
|
|
|
export const getStaticProps = fromPropz(getStaticPropz)
|
|
|
|
export async function getStaticPropz(props: { params: { slugs: string[] } }) {
|
2022-01-25 20:47:25 +00:00
|
|
|
const { slugs } = props.params
|
|
|
|
|
|
|
|
const fold = await getFoldBySlug(slugs[0])
|
|
|
|
const curatorPromise = fold ? getUser(fold.curatorId) : null
|
|
|
|
|
|
|
|
const contracts = fold ? await getFoldContracts(fold).catch((_) => []) : []
|
2022-02-03 05:58:27 +00:00
|
|
|
|
2022-03-02 02:08:44 +00:00
|
|
|
const bets = await Promise.all(
|
2022-02-03 06:19:59 +00:00
|
|
|
contracts.map((contract) => listAllBets(contract.id))
|
|
|
|
)
|
|
|
|
|
2022-03-17 07:29:08 +00:00
|
|
|
let activeContracts = findActiveContracts(contracts, [], _.flatten(bets), {})
|
2022-01-25 20:47:25 +00:00
|
|
|
const [resolved, unresolved] = _.partition(
|
|
|
|
activeContracts,
|
|
|
|
({ isResolved }) => isResolved
|
|
|
|
)
|
|
|
|
activeContracts = [...unresolved, ...resolved]
|
|
|
|
|
|
|
|
const creatorScores = scoreCreators(contracts, bets)
|
|
|
|
const traderScores = scoreTraders(contracts, bets)
|
2022-02-03 06:19:59 +00:00
|
|
|
const [topCreators, topTraders] = await Promise.all([
|
|
|
|
toTopUsers(creatorScores),
|
|
|
|
toTopUsers(traderScores),
|
|
|
|
])
|
|
|
|
|
|
|
|
const curator = await curatorPromise
|
2022-01-25 20:47:25 +00:00
|
|
|
|
|
|
|
return {
|
|
|
|
props: {
|
|
|
|
fold,
|
|
|
|
curator,
|
|
|
|
contracts,
|
|
|
|
activeContracts,
|
2022-02-03 05:34:35 +00:00
|
|
|
traderScores,
|
2022-01-25 20:47:25 +00:00
|
|
|
topTraders,
|
2022-02-03 05:34:35 +00:00
|
|
|
creatorScores,
|
2022-01-25 20:47:25 +00:00
|
|
|
topCreators,
|
|
|
|
},
|
|
|
|
|
|
|
|
revalidate: 60, // regenerate after a minute
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-03 05:34:35 +00:00
|
|
|
async function toTopUsers(userScores: { [userId: string]: number }) {
|
2022-01-25 20:47:25 +00:00
|
|
|
const topUserPairs = _.take(
|
|
|
|
_.sortBy(Object.entries(userScores), ([_, score]) => -1 * score),
|
|
|
|
10
|
2022-02-10 20:51:14 +00:00
|
|
|
).filter(([_, score]) => score >= 0.5)
|
2022-01-28 18:43:35 +00:00
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
const topUsers = await Promise.all(
|
|
|
|
topUserPairs.map(([userId]) => getUser(userId))
|
|
|
|
)
|
2022-02-03 05:34:35 +00:00
|
|
|
return topUsers.filter((user) => user)
|
2022-01-25 20:47:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export async function getStaticPaths() {
|
|
|
|
return { paths: [], fallback: 'blocking' }
|
|
|
|
}
|
2022-01-25 21:44:28 +00:00
|
|
|
const foldSubpages = [undefined, 'activity', 'markets', 'leaderboards'] as const
|
2022-01-25 20:47:25 +00:00
|
|
|
|
|
|
|
export default function FoldPage(props: {
|
2022-01-25 21:44:28 +00:00
|
|
|
fold: Fold | null
|
2022-01-25 20:47:25 +00:00
|
|
|
curator: User
|
|
|
|
contracts: Contract[]
|
|
|
|
activeContracts: Contract[]
|
|
|
|
activeContractBets: Bet[][]
|
|
|
|
activeContractComments: Comment[][]
|
2022-02-03 05:34:35 +00:00
|
|
|
traderScores: { [userId: string]: number }
|
2022-01-25 20:47:25 +00:00
|
|
|
topTraders: User[]
|
2022-02-03 05:34:35 +00:00
|
|
|
creatorScores: { [userId: string]: number }
|
2022-01-25 20:47:25 +00:00
|
|
|
topCreators: User[]
|
|
|
|
}) {
|
2022-03-09 02:43:30 +00:00
|
|
|
props = usePropz(props, getStaticPropz) ?? {
|
|
|
|
fold: null,
|
|
|
|
curator: null,
|
|
|
|
contracts: [],
|
|
|
|
activeContracts: [],
|
|
|
|
activeContractBets: [],
|
|
|
|
activeContractComments: [],
|
|
|
|
traderScores: {},
|
|
|
|
topTraders: [],
|
|
|
|
creatorScores: {},
|
|
|
|
topCreators: [],
|
|
|
|
}
|
2022-03-05 00:06:11 +00:00
|
|
|
const { curator, traderScores, topTraders, creatorScores, topCreators } =
|
|
|
|
props
|
2022-01-25 20:47:25 +00:00
|
|
|
|
|
|
|
const router = useRouter()
|
|
|
|
const { slugs } = router.query as { slugs: string[] }
|
|
|
|
|
2022-03-09 02:43:30 +00:00
|
|
|
const page = (slugs?.[1] ?? 'activity') as typeof foldSubpages[number]
|
2022-01-25 21:44:28 +00:00
|
|
|
|
2022-01-27 06:38:22 +00:00
|
|
|
const fold = useFold(props.fold?.id) ?? props.fold
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-02-08 05:03:55 +00:00
|
|
|
const { query, setQuery, sort, setSort } = useQueryAndSortParams()
|
2022-01-25 20:47:25 +00:00
|
|
|
|
|
|
|
const user = useUser()
|
2022-01-25 21:44:28 +00:00
|
|
|
const isCurator = user && fold && user.id === fold.curatorId
|
|
|
|
|
2022-01-31 04:12:12 +00:00
|
|
|
const taggedContracts = useTaggedContracts(fold?.tags) ?? props.contracts
|
|
|
|
const contractsMap = _.fromPairs(
|
|
|
|
taggedContracts.map((contract) => [contract.id, contract])
|
|
|
|
)
|
|
|
|
|
2022-03-01 20:40:46 +00:00
|
|
|
const contracts = filterDefined(
|
|
|
|
props.contracts.map((contract) => contractsMap[contract.id])
|
|
|
|
)
|
|
|
|
const activeContracts = filterDefined(
|
|
|
|
props.activeContracts.map((contract) => contractsMap[contract.id])
|
2022-01-31 04:12:12 +00:00
|
|
|
)
|
|
|
|
|
2022-03-05 00:06:11 +00:00
|
|
|
const recentBets = useRecentBets()
|
|
|
|
const recentComments = useRecentComments()
|
|
|
|
|
2022-01-25 21:44:28 +00:00
|
|
|
if (fold === null || !foldSubpages.includes(page) || slugs[2]) {
|
|
|
|
return <Custom404 />
|
|
|
|
}
|
2022-01-25 20:47:25 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<Page wide>
|
2022-01-28 19:45:32 +00:00
|
|
|
<SEO
|
|
|
|
title={fold.name}
|
|
|
|
description={`Curated by ${curator.name}. ${fold.about}`}
|
|
|
|
url={foldPath(fold)}
|
|
|
|
/>
|
2022-01-28 18:34:13 +00:00
|
|
|
|
2022-01-28 18:13:12 +00:00
|
|
|
<div className="px-3 lg:px-1">
|
2022-02-11 18:40:22 +00:00
|
|
|
<Row className="mb-6 justify-between">
|
2022-01-28 18:13:12 +00:00
|
|
|
<Title className="!m-0" text={fold.name} />
|
|
|
|
{isCurator ? (
|
|
|
|
<EditFoldButton className="ml-1" fold={fold} />
|
|
|
|
) : (
|
|
|
|
<FollowFoldButton className="ml-1" fold={fold} />
|
|
|
|
)}
|
2022-01-26 18:02:53 +00:00
|
|
|
</Row>
|
2022-01-28 18:13:12 +00:00
|
|
|
|
2022-02-11 18:40:22 +00:00
|
|
|
<Col className="mb-6 gap-2 text-gray-500 md:hidden">
|
2022-01-28 18:13:12 +00:00
|
|
|
<Row>
|
|
|
|
<div className="mr-1">Curated by</div>
|
|
|
|
<UserLink
|
|
|
|
className="text-neutral"
|
|
|
|
name={curator.name}
|
|
|
|
username={curator.username}
|
|
|
|
/>
|
|
|
|
</Row>
|
2022-02-10 20:57:41 +00:00
|
|
|
<Linkify text={fold.about ?? ''} />
|
2022-01-28 18:13:12 +00:00
|
|
|
</Col>
|
|
|
|
</div>
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-01-26 18:02:53 +00:00
|
|
|
<div className="tabs mb-2">
|
|
|
|
<Link href={foldPath(fold)} shallow>
|
|
|
|
<a
|
|
|
|
className={clsx(
|
|
|
|
'tab tab-bordered',
|
|
|
|
page === 'activity' && 'tab-active'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
Activity
|
|
|
|
</a>
|
|
|
|
</Link>
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-01-26 18:02:53 +00:00
|
|
|
<Link href={foldPath(fold, 'markets')} shallow>
|
|
|
|
<a
|
|
|
|
className={clsx(
|
|
|
|
'tab tab-bordered',
|
|
|
|
page === 'markets' && 'tab-active'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
Markets
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
<Link href={foldPath(fold, 'leaderboards')} shallow>
|
|
|
|
<a
|
|
|
|
className={clsx(
|
|
|
|
'tab tab-bordered',
|
|
|
|
page === 'leaderboards' && 'tab-active',
|
|
|
|
page !== 'leaderboards' && 'md:hidden'
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
Leaderboards
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-01-26 18:02:53 +00:00
|
|
|
{(page === 'activity' || page === 'markets') && (
|
|
|
|
<Row className={clsx(page === 'activity' ? 'gap-16' : 'gap-8')}>
|
|
|
|
<Col className="flex-1">
|
2022-02-01 04:10:02 +00:00
|
|
|
{user !== null && !fold.disallowMarketCreation && (
|
2022-01-27 18:45:35 +00:00
|
|
|
<FeedCreate
|
2022-02-01 01:29:59 +00:00
|
|
|
className={clsx('border-b-2', page !== 'activity' && 'hidden')}
|
2022-01-27 18:45:35 +00:00
|
|
|
user={user}
|
|
|
|
tag={toCamelCase(fold.name)}
|
2022-01-27 20:05:59 +00:00
|
|
|
placeholder={`Type your question about ${fold.name}`}
|
2022-01-27 18:45:35 +00:00
|
|
|
/>
|
|
|
|
)}
|
2022-01-26 18:02:53 +00:00
|
|
|
{page === 'activity' ? (
|
2022-03-05 00:06:11 +00:00
|
|
|
recentBets && recentComments ? (
|
|
|
|
<>
|
|
|
|
<ActivityFeed
|
|
|
|
contracts={activeContracts}
|
|
|
|
recentBets={recentBets ?? []}
|
|
|
|
recentComments={recentComments ?? []}
|
2022-03-14 20:29:32 +00:00
|
|
|
mode="abbreviated"
|
2022-03-05 00:06:11 +00:00
|
|
|
/>
|
|
|
|
{activeContracts.length === 0 && (
|
|
|
|
<div className="mx-2 mt-4 text-gray-500 lg:mx-0">
|
|
|
|
No activity from matching markets.{' '}
|
|
|
|
{isCurator && 'Try editing to add more tags!'}
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
</>
|
|
|
|
) : (
|
|
|
|
<LoadingIndicator className="mt-4" />
|
|
|
|
)
|
2022-01-26 18:02:53 +00:00
|
|
|
) : (
|
2022-01-25 20:47:25 +00:00
|
|
|
<SearchableGrid
|
|
|
|
contracts={contracts}
|
|
|
|
query={query}
|
|
|
|
setQuery={setQuery}
|
|
|
|
sort={sort}
|
|
|
|
setSort={setSort}
|
|
|
|
/>
|
2022-01-26 18:02:53 +00:00
|
|
|
)}
|
|
|
|
</Col>
|
2022-02-11 18:40:22 +00:00
|
|
|
<Col className="hidden w-full max-w-xs gap-12 md:flex">
|
2022-01-26 18:02:53 +00:00
|
|
|
<FoldOverview fold={fold} curator={curator} />
|
|
|
|
<FoldLeaderboards
|
2022-02-03 05:34:35 +00:00
|
|
|
traderScores={traderScores}
|
|
|
|
creatorScores={creatorScores}
|
2022-01-26 18:02:53 +00:00
|
|
|
topTraders={topTraders}
|
|
|
|
topCreators={topCreators}
|
2022-02-03 05:34:35 +00:00
|
|
|
user={user}
|
2022-01-26 18:02:53 +00:00
|
|
|
/>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
)}
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-01-26 18:02:53 +00:00
|
|
|
{page === 'leaderboards' && (
|
2022-02-11 18:40:22 +00:00
|
|
|
<Col className="gap-8 px-4 lg:flex-row">
|
2022-01-26 18:02:53 +00:00
|
|
|
<FoldLeaderboards
|
2022-02-03 05:34:35 +00:00
|
|
|
traderScores={traderScores}
|
|
|
|
creatorScores={creatorScores}
|
2022-01-26 18:02:53 +00:00
|
|
|
topTraders={topTraders}
|
|
|
|
topCreators={topCreators}
|
2022-02-03 05:34:35 +00:00
|
|
|
user={user}
|
|
|
|
yourPerformanceClassName="lg:hidden"
|
2022-01-26 18:02:53 +00:00
|
|
|
/>
|
2022-01-25 20:47:25 +00:00
|
|
|
</Col>
|
2022-01-26 18:02:53 +00:00
|
|
|
)}
|
2022-01-25 20:47:25 +00:00
|
|
|
</Page>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function FoldOverview(props: { fold: Fold; curator: User }) {
|
|
|
|
const { fold, curator } = props
|
|
|
|
const { about, tags } = fold
|
|
|
|
|
|
|
|
return (
|
2022-01-27 06:38:22 +00:00
|
|
|
<Col>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="rounded-t bg-indigo-500 px-4 py-3 text-sm text-white">
|
2022-01-25 20:47:25 +00:00
|
|
|
About community
|
|
|
|
</div>
|
2022-02-11 18:40:22 +00:00
|
|
|
<Col className="gap-2 rounded-b bg-white p-4">
|
2022-01-25 20:47:25 +00:00
|
|
|
<Row>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="mr-1 text-gray-500">Curated by</div>
|
2022-01-25 20:47:25 +00:00
|
|
|
<UserLink
|
|
|
|
className="text-neutral"
|
|
|
|
name={curator.name}
|
|
|
|
username={curator.username}
|
|
|
|
/>
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
{about && (
|
|
|
|
<>
|
|
|
|
<Spacer h={2} />
|
2022-02-10 20:57:41 +00:00
|
|
|
<div className="text-gray-500">
|
|
|
|
<Linkify text={about} />
|
|
|
|
</div>
|
2022-01-25 20:47:25 +00:00
|
|
|
</>
|
|
|
|
)}
|
|
|
|
|
2022-02-02 20:20:02 +00:00
|
|
|
<div className="divider" />
|
2022-01-25 20:47:25 +00:00
|
|
|
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="mb-2 text-gray-500">
|
2022-02-02 20:20:02 +00:00
|
|
|
Includes markets matching any of these tags:
|
|
|
|
</div>
|
|
|
|
|
2022-02-03 20:13:51 +00:00
|
|
|
<TagsList tags={tags} noLabel />
|
2022-01-25 20:47:25 +00:00
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
function FoldLeaderboards(props: {
|
2022-02-03 05:34:35 +00:00
|
|
|
traderScores: { [userId: string]: number }
|
|
|
|
creatorScores: { [userId: string]: number }
|
2022-01-25 20:47:25 +00:00
|
|
|
topTraders: User[]
|
|
|
|
topCreators: User[]
|
2022-02-03 05:34:35 +00:00
|
|
|
user: User | null | undefined
|
|
|
|
yourPerformanceClassName?: string
|
2022-01-25 20:47:25 +00:00
|
|
|
}) {
|
2022-02-03 05:34:35 +00:00
|
|
|
const {
|
|
|
|
traderScores,
|
|
|
|
creatorScores,
|
|
|
|
topTraders,
|
|
|
|
topCreators,
|
|
|
|
user,
|
|
|
|
yourPerformanceClassName,
|
|
|
|
} = props
|
|
|
|
|
|
|
|
const yourTraderScore = user ? traderScores[user.id] : undefined
|
|
|
|
const yourCreatorScore = user ? creatorScores[user.id] : undefined
|
|
|
|
|
|
|
|
const topTraderScores = topTraders.map((user) => traderScores[user.id])
|
|
|
|
const topCreatorScores = topCreators.map((user) => creatorScores[user.id])
|
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
return (
|
|
|
|
<>
|
2022-02-03 05:34:35 +00:00
|
|
|
{user && (
|
|
|
|
<Col className={yourPerformanceClassName}>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="rounded bg-indigo-500 px-4 py-3 text-sm text-white">
|
2022-02-03 05:34:35 +00:00
|
|
|
Your performance
|
|
|
|
</div>
|
|
|
|
<div className="bg-white p-2">
|
2022-02-11 18:40:22 +00:00
|
|
|
<table className="table-compact table w-full text-gray-500">
|
2022-02-03 05:34:35 +00:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Trading profit</td>
|
|
|
|
<td>{formatMoney(yourTraderScore ?? 0)}</td>
|
|
|
|
</tr>
|
|
|
|
{yourCreatorScore && (
|
|
|
|
<tr>
|
|
|
|
<td>Created market vol</td>
|
|
|
|
<td>{formatMoney(yourCreatorScore)}</td>
|
|
|
|
</tr>
|
|
|
|
)}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
)}
|
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
<Leaderboard
|
|
|
|
className="max-w-xl"
|
|
|
|
title="🏅 Top traders"
|
|
|
|
users={topTraders}
|
|
|
|
columns={[
|
|
|
|
{
|
|
|
|
header: 'Profit',
|
|
|
|
renderCell: (user) =>
|
|
|
|
formatMoney(topTraderScores[topTraders.indexOf(user)]),
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
2022-02-03 05:34:35 +00:00
|
|
|
|
2022-01-25 20:47:25 +00:00
|
|
|
<Leaderboard
|
|
|
|
className="max-w-xl"
|
|
|
|
title="🏅 Top creators"
|
|
|
|
users={topCreators}
|
|
|
|
columns={[
|
|
|
|
{
|
2022-02-03 05:34:35 +00:00
|
|
|
header: 'Market vol',
|
2022-01-25 20:47:25 +00:00
|
|
|
renderCell: (user) =>
|
|
|
|
formatMoney(topCreatorScores[topCreators.indexOf(user)]),
|
|
|
|
},
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|