feat: add react router scroll restoration
This commit is contained in:
parent
2f32f400dd
commit
dae94733fa
@ -1,4 +1,4 @@
|
|||||||
import { Outlet } from 'react-router-dom'
|
import { Outlet, ScrollRestoration } from 'react-router-dom'
|
||||||
import { Footer } from './footer'
|
import { Footer } from './footer'
|
||||||
import { Header } from './header'
|
import { Header } from './header'
|
||||||
import { SocialNav } from './socialNav'
|
import { SocialNav } from './socialNav'
|
||||||
@ -12,6 +12,7 @@ export const Layout = () => {
|
|||||||
<Outlet />
|
<Outlet />
|
||||||
<Footer />
|
<Footer />
|
||||||
<SocialNav />
|
<SocialNav />
|
||||||
|
<ScrollRestoration />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user