feat: add react router scroll restoration

This commit is contained in:
enes 2024-11-06 11:13:42 +01:00
parent 2f32f400dd
commit dae94733fa

View File

@ -1,4 +1,4 @@
import { Outlet } from 'react-router-dom'
import { Outlet, ScrollRestoration } from 'react-router-dom'
import { Footer } from './footer'
import { Header } from './header'
import { SocialNav } from './socialNav'
@ -12,6 +12,7 @@ export const Layout = () => {
<Outlet />
<Footer />
<SocialNav />
<ScrollRestoration />
</>
)
}