diff --git a/web/pages/challenges/index.tsx b/web/pages/challenges/index.tsx index c43076e5..c55c9335 100644 --- a/web/pages/challenges/index.tsx +++ b/web/pages/challenges/index.tsx @@ -38,6 +38,22 @@ export default function LinkPage() { const userChallenges = useUserChallenges(user?.id ?? '') const challenges = useAcceptedChallenges() + const userTab = user + ? [ + { + content: , + title: 'Your Challenges', + }, + ] + : [] + + const publicTab = [ + { + content: , + title: 'Public Challenges', + }, + ] + return ( + </Row> <p>Find or create a question to challenge someone to a bet.</p> - <Tabs - tabs={[ - { - content: <PublicChallengesTable links={challenges} />, - title: 'Public Challenges', - }, - ].concat( - user - ? { - content: <YourChallengesTable links={userChallenges} />, - title: 'Your Challenges', - } - : [] - )} - /> + + <Tabs tabs={[...userTab, ...publicTab]} /> </Col> </Page> )