From 5b74dfa39ba87ebbe7aefa30e5ad71c1ec03caea Mon Sep 17 00:00:00 2001 From: Seroxdesign Date: Mon, 23 Oct 2023 09:34:35 -0400 Subject: [PATCH] fix imports, fix bugs --- packages/web/pages/community/index.tsx | 53 +++++++++++--------------- 1 file changed, 23 insertions(+), 30 deletions(-) diff --git a/packages/web/pages/community/index.tsx b/packages/web/pages/community/index.tsx index cf39ae950..a4b8f4770 100644 --- a/packages/web/pages/community/index.tsx +++ b/packages/web/pages/community/index.tsx @@ -12,11 +12,12 @@ import { PageContainer } from 'components/Container'; import { getPatrons, getPSeedPrice } from 'graphql/getPatrons'; import { getGuilds } from 'graphql/queries/guild'; import { InferGetStaticPropsType } from 'next'; +import { useRouter } from 'next/router'; import GuildsPage from 'pages/guilds'; import PatronsPage from 'pages/patrons'; import Players from 'pages/players'; import React, { useEffect, useState } from 'react'; -import { useRouter } from 'next/router'; + type Props = InferGetStaticPropsType; @@ -83,37 +84,29 @@ const UnifiedCommunityPage: React.FC = ({ onChange={handleTabChange} > - <> - { - communityTabs.map(({ link }) => { - return( - - {link} - - ) - }) - } - + { + communityTabs.map(({ link }) => + + {link} + + ) + } - - { - communityTabs.map(({ link, component }) => { - return ( - - {component} - - ) - }) - } - + { + communityTabs.map(({ link, component }) => + + {component} + + ) + }