feat: scroll to top when jumping to the current page
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
import SecondaryPageLayout from '@/layouts/SecondaryPageLayout'
|
||||
import { forwardRef } from 'react'
|
||||
|
||||
export default function LoadingPage({ title, index }: { title?: string; index?: number }) {
|
||||
const LoadingPage = forwardRef(({ title, index }: { title?: string; index?: number }, ref) => {
|
||||
return (
|
||||
<SecondaryPageLayout index={index} title={title}>
|
||||
<SecondaryPageLayout ref={ref} index={index} title={title}>
|
||||
<div className="text-muted-foreground text-center">
|
||||
<div>Loading...</div>
|
||||
</div>
|
||||
</SecondaryPageLayout>
|
||||
)
|
||||
}
|
||||
})
|
||||
LoadingPage.displayName = 'LoadingPage'
|
||||
export default LoadingPage
|
||||
|
||||
Reference in New Issue
Block a user