mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-16 08:56:09 -05:00
* create useSetupFlow hook * Add availability hours and fix permissions in Hasura * Implement mutation for About You section of profile setup
18 lines
661 B
TypeScript
18 lines
661 B
TypeScript
import BackgroundImage from 'assets/profile-background.jpg';
|
|
import { FlexContainer, PageContainer } from 'components/Container';
|
|
import { SetupHeader } from 'components/Setup/SetupHeader';
|
|
import { useSetupFlow } from 'contexts/SetupContext';
|
|
import React from 'react';
|
|
|
|
export const SetupProfile: React.FC = () => {
|
|
const { step, screen, numTotalSteps, options } = useSetupFlow();
|
|
return (
|
|
<PageContainer backgroundImage={`url(${BackgroundImage})`}>
|
|
{(step + 1) % numTotalSteps !== 0 && <SetupHeader />}
|
|
<FlexContainer flex={1} pt={24}>
|
|
{options[step].screens[screen].component}
|
|
</FlexContainer>
|
|
</PageContainer>
|
|
);
|
|
};
|