From dae94733fa9376ef979f0c9981225eff041a8c62 Mon Sep 17 00:00:00 2001 From: enes Date: Wed, 6 Nov 2024 11:13:42 +0100 Subject: [PATCH] feat: add react router scroll restoration --- src/layout/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout/index.tsx b/src/layout/index.tsx index a644ced..cacabd4 100644 --- a/src/layout/index.tsx +++ b/src/layout/index.tsx @@ -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 = () => {