Skip to content

Commit

Permalink
feat: remove warning modal
Browse files Browse the repository at this point in the history
Andrew4Coding committed Nov 9, 2024
1 parent 4a5de86 commit e823420
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/MenteeRegistrationModule/index.tsx
Original file line number Diff line number Diff line change
@@ -4,8 +4,6 @@ import { cn } from '@/lib/utils'
import { useState } from 'react'
import AfterRegistrationModule from '../AfterRegistrationModule'
import { PickEventModule } from '../RegisterPickEventModule'
import { Questioner } from './sections/Questioner'
import { WarnModal } from './sections/WarnModal'

export const MenteeRegistrationModule = () => {
const [page, setPage] = useState(0)
@@ -14,15 +12,14 @@ export const MenteeRegistrationModule = () => {
<main
className={cn(
'flex items-center justify-center',
(page === 0 || page === 1) && 'min-h-screen'
)}
>
{page === 0 && <WarnModal onClick={() => setPage(page + 1)} />}
{page === 1 && <Questioner onClick={() => setPage(page + 1)} />}
{/* {page === 0 && <WarnModal onClick={() => setPage(page + 1)} />} */}
{/* {page === 1 && <Questioner onClick={() => setPage(page + 1)} />} */}
</main>
<main>
{page === 2 && <PickEventModule onClick={() => setPage(page + 1)} />}
{page === 3 && <AfterRegistrationModule />}
{page === 0 && <PickEventModule onClick={() => setPage(page + 1)} />}
{page === 1 && <AfterRegistrationModule />}
</main>
</>
)

0 comments on commit e823420

Please sign in to comment.