Skip to content

Commit 3f500b6

Browse files
committed
scroll to top
1 parent b1ec04a commit 3f500b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/pages/apps.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import { useNavigate } from "react-router";
22
import { useApps } from "@/hooks/useApps";
3+
import { useEffect } from "react";
34

45
const Apps = () => {
56
const navigate = useNavigate();
67
const { apps } = useApps();
78

9+
useEffect(() => {
10+
window.scrollTo(0, 0);
11+
}, []);
12+
813
return (
914
<div className="min-h-screen">
1015
<div className="flex flex-col px-6">

0 commit comments

Comments
 (0)