Skip to content

Commit

Permalink
Merge pull request #46 from pythonkr/develop
Browse files Browse the repository at this point in the history
Fix: 후원사 상세 페이지 이동 시 상단 콘텐츠가 보이도록 스크롤 조정
  • Loading branch information
jungmir authored Oct 8, 2024
2 parents 34885fd + a4f2352 commit 111d7b1
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 111d7b1

Please sign in to comment.