mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
* MyMeta - App Drawer * MyMeta - App Drawer - help (#242) * update nextjs @10.0.3 * Use next image component for main app drawer icons * change links * backdrop to close drawer * Links * typecheck * Removed py for page header Co-authored-by: The Lone Rōnin <log2n@protonmail.com> * Framer Motion Integration * Removed drawer transparency * Fix disappeared Login component * remove unnecessary pointerevent thing (thanks to display=none) * Fix ticker display * Added guilds Co-authored-by: Pacien Boisson <pakokrew@users.noreply.github.com> Co-authored-by: Pacien Boisson <pakokrew@gmail.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
import { SetupProfile } from 'components/Setup/SetupProfile';
|
|
import { SetupContextProvider } from 'contexts/SetupContext';
|
|
import { getPersonalityTypes } from 'graphql/getPersonalityTypes';
|
|
import { getPlayerTypes } from 'graphql/getPlayerTypes';
|
|
import { getSkills } from 'graphql/getSkills';
|
|
import { InferGetStaticPropsType } from 'next';
|
|
import React from 'react';
|
|
import { options as setupOptions } from 'utils/setupOptions';
|
|
import { parseSkills } from 'utils/skillHelpers';
|
|
|
|
export const getStaticProps = async () => {
|
|
const [skills, personalityTypes, playerTypes] = await Promise.all([
|
|
getSkills(),
|
|
getPersonalityTypes(),
|
|
getPlayerTypes(),
|
|
]);
|
|
const skillsList = parseSkills(skills);
|
|
|
|
return {
|
|
props: {
|
|
skillsList,
|
|
personalityTypes,
|
|
playerTypes,
|
|
hideAppDrawer: true,
|
|
},
|
|
};
|
|
};
|
|
|
|
type Props = InferGetStaticPropsType<typeof getStaticProps>;
|
|
|
|
const ProfileSetup: React.FC<Props> = (props) => (
|
|
<SetupContextProvider options={setupOptions} {...props}>
|
|
<SetupProfile />
|
|
</SetupContextProvider>
|
|
);
|
|
|
|
export default ProfileSetup;
|