feat: add suspense loading state to recover password page
This commit is contained in:
@@ -4,7 +4,7 @@ import { css, cx } from '@/styled-system/css'
|
|||||||
import { Center } from '@/styled-system/jsx'
|
import { Center } from '@/styled-system/jsx'
|
||||||
import { container } from '@/styled-system/patterns'
|
import { container } from '@/styled-system/patterns'
|
||||||
import { card } from '@/styled-system/recipes'
|
import { card } from '@/styled-system/recipes'
|
||||||
import { type FC } from 'react'
|
import { Suspense, type FC } from 'react'
|
||||||
|
|
||||||
const page: FC = () => {
|
const page: FC = () => {
|
||||||
return (
|
return (
|
||||||
@@ -35,7 +35,9 @@ const page: FC = () => {
|
|||||||
<div
|
<div
|
||||||
className={card().content}
|
className={card().content}
|
||||||
>
|
>
|
||||||
|
<Suspense fallback={<Typography variant="body1">Cargando...</Typography>}>
|
||||||
<ManageRecoverPassword />
|
<ManageRecoverPassword />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Center>
|
</Center>
|
||||||
|
|||||||
Reference in New Issue
Block a user