mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: install page suspense issues
This commit is contained in:
parent
9b8ec34bba
commit
a552300e15
1 changed files with 18 additions and 2 deletions
|
|
@ -3,11 +3,27 @@ import React, { use, useEffect } from 'react'
|
|||
import { INSTALL_STEPS } from './steps/steps'
|
||||
import GeneralWrapperStyled from '@components/StyledElements/Wrappers/GeneralWrapper'
|
||||
import { useRouter, useSearchParams } from 'next/navigation'
|
||||
import { Suspense } from 'react'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function InstallClient() {
|
||||
|
||||
|
||||
return (
|
||||
<GeneralWrapperStyled>
|
||||
<Suspense>
|
||||
<>
|
||||
|
||||
</>
|
||||
</Suspense>
|
||||
</GeneralWrapperStyled>
|
||||
)
|
||||
}
|
||||
|
||||
const Stepscomp = () => {
|
||||
const searchParams = useSearchParams()
|
||||
const router = useRouter()
|
||||
const step: any = parseInt(searchParams.get('step') || '0');
|
||||
|
|
@ -24,7 +40,7 @@ function InstallClient() {
|
|||
}, [step])
|
||||
|
||||
return (
|
||||
<GeneralWrapperStyled>
|
||||
<div>
|
||||
<div className='flex justify-center '>
|
||||
<div className='grow'>
|
||||
<LearnHouseLogo />
|
||||
|
|
@ -54,7 +70,7 @@ function InstallClient() {
|
|||
{stepsState[stepNumber].component}
|
||||
</div>
|
||||
</div>
|
||||
</GeneralWrapperStyled>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue