mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-01-23 05:08:01 -05:00
Fixed erroneous import in GuildJoin component
This commit is contained in:
committed by
Alec LaLonde
parent
09de71dd00
commit
cea744a10e
@@ -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()}`;
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ type Props = InferGetStaticPropsType<typeof getStaticProps>;
|
||||
export const getStaticProps = async () => {
|
||||
return {
|
||||
props: {
|
||||
hideAppDrawer: false
|
||||
}
|
||||
hideAppDrawer: false,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user