From 83573610386d149951dee7b69381e0ed4667f407 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Fri, 24 Jun 2022 18:06:20 -0500 Subject: [PATCH] Remove unused function --- web/pages/group/[...slugs]/index.tsx | 36 ---------------------------- 1 file changed, 36 deletions(-) diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index d201842d..f3e66c8d 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -381,42 +381,6 @@ export function GroupMembersList(props: { group: Group }) { ) } -function YourPerformance(props: { - traderScores: { [userId: string]: number } - creatorScores: { [userId: string]: number } - - user: User | null | undefined -}) { - const { traderScores, creatorScores, user } = props - - const yourTraderScore = user ? traderScores[user.id] : undefined - const yourCreatorScore = user ? creatorScores[user.id] : undefined - - return user ? ( - -
- Your performance -
-
- - - - - - - {yourCreatorScore && ( - - - - - )} - -
Total profit{formatMoney(yourTraderScore ?? 0)}
Total created pool{formatMoney(yourCreatorScore)}
-
- - ) : null -} - function GroupLeaderboards(props: { traderScores: { [userId: string]: number } creatorScores: { [userId: string]: number }