mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-07-09 15:08:06 +00:00
feat: getting-start form
Took 7 hours 1 minute
This commit is contained in:
@@ -2,16 +2,21 @@ import Head from 'next/head';
|
||||
import {websiteName} from '@/lib/constants';
|
||||
import {useSession} from 'next-auth/react';
|
||||
import LoadingPage from '@/components/LoadingPage';
|
||||
import GettingStartForm from '@/components/form/GettingStartForm';
|
||||
import GettingStartForm from '@/components/form/GettingStartForm/GettingStartForm';
|
||||
import {store} from '@/redux/redux';
|
||||
import {Provider} from 'react-redux';
|
||||
import {User} from '@prisma/client';
|
||||
|
||||
export default function GettingStart() {
|
||||
const {data: session, status} = useSession({required: true})
|
||||
const {data: session, status} = useSession({required: true});
|
||||
|
||||
if (status === "loading") return <LoadingPage/>
|
||||
if (status === 'loading') return <LoadingPage/>;
|
||||
return (
|
||||
<>
|
||||
<Head><title>{websiteName}</title></Head>
|
||||
<GettingStartForm user={session.user}/>
|
||||
<Provider store={store}>
|
||||
<GettingStartForm user={session.user as User}/>
|
||||
</Provider>
|
||||
</>
|
||||
)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user