Skip to content

Commit a4f2352

Browse files
committed
Fix: 후원사 상세 페이지 이동 시 상단 콘텐츠가 보이도록 스크롤 조정
1 parent 25962e2 commit a4f2352

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pages/Sponsor/SponsorDetail.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ import styled from "styled-components";
99
import { useRetrieveSponsorQuery } from "utils/hooks/useAPI";
1010

1111
const SponsorDetail: React.FC<{ sponsor: APISponsor }> = ({ sponsor }) => {
12+
useEffect(() => {
13+
window.scrollTo({
14+
top: 0,
15+
behavior: "smooth",
16+
});
17+
}, []);
18+
1219
return (
1320
<Vertical>
1421
<H1>{sponsor.name}</H1>

0 commit comments

Comments
 (0)