diff --git a/src/components/atoms/scrollToTop.tsx b/src/components/atoms/scrollToTop.tsx new file mode 100644 index 000000000..e8df909f8 --- /dev/null +++ b/src/components/atoms/scrollToTop.tsx @@ -0,0 +1,12 @@ +// scrollToTop.tsx +import { useEffect } from 'react'; + +const ScrollToTop: React.FC = () => { + useEffect(() => { + window.scrollTo(0, 0); + }, []); + + return null; +}; + +export default ScrollToTop;