From c15292e2cbc8ad242b192d58a7ee38fc80fb2964 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 15 Jul 2022 00:50:52 -0500 Subject: [PATCH] Remove top creators and top followed from leaderboards --- web/pages/leaderboards.tsx | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/web/pages/leaderboards.tsx b/web/pages/leaderboards.tsx index 061f3a19..ac7a348f 100644 --- a/web/pages/leaderboards.tsx +++ b/web/pages/leaderboards.tsx @@ -46,9 +46,7 @@ export default function Leaderboards(props: { topCreators: [], topFollowed: [], } - const { topFollowed } = props const [topTradersState, setTopTraders] = useState(props.topTraders) - const [topCreatorsState, setTopCreators] = useState(props.topCreators) const [isLoading, setLoading] = useState(false) const [period, setPeriod] = useState('allTime') @@ -56,7 +54,6 @@ export default function Leaderboards(props: { setLoading(true) queryLeaderboardUsers(period).then((res) => { setTopTraders(res.props.topTraders as User[]) - setTopCreators(res.props.topCreators as User[]) setLoading(false) }) }, [period]) @@ -84,39 +81,11 @@ export default function Leaderboards(props: { ) : ( <> )} - - - formatMoney(user.creatorVolumeCached[period]), - }, - ]} - /> ) : ( )} - {period === 'allTime' ? ( - - user.followerCountCached, - }, - ]} - /> - - ) : ( - <> - )} ) }