Add scroll-to-top button for improved navigation

This commit is contained in:
Atansuyi Solomon
2025-06-21 20:55:20 +01:00
parent d25f7ca557
commit 20d0c5fe40
2 changed files with 49 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import { SnackbarProvider } from 'notistack';
import { tools } from '../tools';
import './index.css';
import { darkTheme, lightTheme } from '../config/muiConfig';
import ScrollToTopButton from './ScrollToTopButton';
const AppRoutes = () => {
const updatedRoutesConfig = [...routesConfig];
@@ -48,6 +49,7 @@ function App() {
</BrowserRouter>
</CustomSnackBarProvider>
</SnackbarProvider>
<ScrollToTopButton />
</ThemeProvider>
);
}