From a1c4be47d67ce6f1fb863e04ed75698767e6240e Mon Sep 17 00:00:00 2001 From: ingawei Date: Fri, 29 Jul 2022 13:19:39 -0700 Subject: [PATCH] getting rid of irrelevant things --- web/components/onboarding/welcome.tsx | 2 - web/pages/group/[...slugs]/index.tsx | 142 +++++++------------------- 2 files changed, 38 insertions(+), 106 deletions(-) diff --git a/web/components/onboarding/welcome.tsx b/web/components/onboarding/welcome.tsx index 2caf66dd..34f21c11 100644 --- a/web/components/onboarding/welcome.tsx +++ b/web/components/onboarding/welcome.tsx @@ -2,12 +2,10 @@ import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/solid' import clsx from 'clsx' import { useState } from 'react' import { useUser } from 'web/hooks/use-user' -import { changeUserInfo } from 'web/lib/firebase/api' import { updateUser } from 'web/lib/firebase/users' import { Col } from '../layout/col' import { Modal } from '../layout/modal' import { Row } from '../layout/row' -import { Subtitle } from '../subtitle' import { Title } from '../title' export default function Welcome() { diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index 5437146b..5c52c7dc 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -51,7 +51,6 @@ import { ENV_CONFIG } from 'common/envs/constants' import { useSaveReferral } from 'web/hooks/use-save-referral' import { Button } from 'web/components/button' -const manifundGroupNames = ['Cause Exploration Prize'] export const getStaticProps = fromPropz(getStaticPropz) export async function getStaticPropz(props: { params: { slugs: string[] } }) { const { slugs } = props.params @@ -244,113 +243,48 @@ export default function GroupPage(props: { }, ] - const manifundTabs = [ - { - title: 'Chat', - content: chatTab, - href: groupPath(group.slug, GROUP_CHAT_SLUG), - }, - { - title: 'Markets', - content: questionsTab, - href: groupPath(group.slug, 'markets'), - }, - { - title: 'Leaderboards', - content: leaderboard, - href: groupPath(group.slug, 'leaderboards'), - }, - { - title: 'About', - content: aboutTab, - href: groupPath(group.slug, 'about'), - }, - ] const tabIndex = tabs.map((t) => t.title).indexOf(page ?? GROUP_CHAT_SLUG) - if (manifundGroupNames.includes(group.name)) { - return ( - - - - -
-
- {group.name} -
-
- -
+ return ( + + + + +
+
+ {group.name}
-
- +
+
- - - 0 ? tabIndex : 0} - tabs={tabs} - /> - - ) - } else { - return ( - - - - -
-
- {group.name} -
-
- -
-
-
- -
-
- - 0 ? tabIndex : 0} - tabs={tabs} - /> -
- ) - } +
+
+ +
+ + + 0 ? tabIndex : 0} + tabs={tabs} + /> + + ) } function JoinOrAddQuestionsButtons(props: {