From cea744a10efa33959e0350f8525efbcc9db1dfbc Mon Sep 17 00:00:00 2001 From: Alec LaLonde Date: Tue, 30 Mar 2021 12:23:29 -0600 Subject: [PATCH] Fixed erroneous import in GuildJoin component --- packages/web/components/Guild/GuildJoin.tsx | 8 ++++---- packages/web/pages/join/guild/index.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/web/components/Guild/GuildJoin.tsx b/packages/web/components/Guild/GuildJoin.tsx index 2f1b5dd0..41fc7fb2 100644 --- a/packages/web/components/Guild/GuildJoin.tsx +++ b/packages/web/components/Guild/GuildJoin.tsx @@ -1,20 +1,20 @@ import { Flex, HStack, Image, List, ListIcon, ListItem, MetaButton, MetaHeading, Text, VStack } from '@metafam/ds'; -import { CONSTANTS } from '@metafam/utils'; +import { Constants } from '@metafam/utils'; import { FlexContainer } from 'components/Container'; import { MetaLink } from 'components/Link'; import { CONFIG } from 'config'; import React from 'react'; import { FaCheckCircle } from 'react-icons/fa'; -const discordOAuthCallbackUrl = `${CONFIG.backendUrl}/${CONSTANTS.DISCORD_OAUTH_CALLBACK_PATH}`; +const discordOAuthCallbackUrl = `${CONFIG.backendUrl}/${Constants.DISCORD_OAUTH_CALLBACK_PATH}`; const discordAuthParams = new URLSearchParams({ response_type: 'code', client_id: CONFIG.discordBotClientId, state: 'guid-to-go-in-localstorage', - permissions: CONSTANTS.DISCORD_BOT_PERMISSIONS, + permissions: Constants.DISCORD_BOT_PERMISSIONS, redirect_uri: encodeURI(discordOAuthCallbackUrl), - scope: CONSTANTS.DISCORD_OAUTH_SCOPES, + scope: Constants.DISCORD_OAUTH_SCOPES, }) const discordAuthUrl = `https://discord.com/api/oauth2/authorize?${discordAuthParams.toString()}`; diff --git a/packages/web/pages/join/guild/index.tsx b/packages/web/pages/join/guild/index.tsx index 6aed69f2..06f1f0b9 100644 --- a/packages/web/pages/join/guild/index.tsx +++ b/packages/web/pages/join/guild/index.tsx @@ -8,8 +8,8 @@ type Props = InferGetStaticPropsType; export const getStaticProps = async () => { return { props: { - hideAppDrawer: false - } + hideAppDrawer: false, + }, }; };