Skip to content

Commit

Permalink
Fix: 후원사 상세 페이지 이동 시 상단 콘텐츠가 보이도록 스크롤 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
jungmir committed Oct 8, 2024
1 parent 25962e2 commit a4f2352
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/Sponsor/SponsorDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ import styled from "styled-components";
import { useRetrieveSponsorQuery } from "utils/hooks/useAPI";

const SponsorDetail: React.FC<{ sponsor: APISponsor }> = ({ sponsor }) => {
useEffect(() => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
}, []);

return (
<Vertical>
<H1>{sponsor.name}</H1>
Expand Down

0 comments on commit a4f2352

Please sign in to comment.