Skip to content

Commit

Permalink
Merge pull request #237 from SOPT-all/fix/#236/qa-fifth
Browse files Browse the repository at this point in the history
[FIX] QA 5์ฐจ ๋Œ€์‘
  • Loading branch information
seong-hui authored Jan 25, 2025
2 parents b18405b + c01f649 commit 50e6de9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/common/tapBar/TapBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const TapBar = ({ type, selectedTap }: TapBarProps) => {
}, []);

return (
<div className={tapBarContainer} id="detail-section-0">
<div className={tapBarContainer}>
{taplist.map((label, index) => (
<UnderlinedBtn
key={index}
Expand Down
2 changes: 1 addition & 1 deletion src/components/templeDetail/naverMap/smallMap/SmallMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SmallMap = ({ detailAddress, latitude, longitude }: MapDataProps) => {
);

return (
<div className={styles.mapContainerWrapper}>
<div className={styles.mapContainerWrapper} id="detail-section-4">
<DetailTitle title="์ง€๋„" />
<div className={styles.mapContainerStyle}>
<div className={styles.addressDetailStyle}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/templeDetail/templeInfo/templeInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const TempleInfo = ({ introduction }: TempleInfoProps) => {
}

return (
<div className={styles.templeInfoContainer} id="detail-section-4">
<div className={styles.templeInfoContainer} id="detail-section-3">
<DetailTitle title="ํ…œํ”Œ์Šคํ…Œ์ด ์ •๋ณด" />
{parsedIntroduction ? (
<div className={styles.templeInfoBoxStyle}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/templeDetail/templePrice/TemplePrice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface TemplePriceProps {

const TemplePrice = ({ templestayPrice }: TemplePriceProps) => {
return (
<div className={styles.templePriceWrapper} id="detail-section-3">
<div className={styles.templePriceWrapper} id="detail-section-2">
<DetailTitle title="๊ฐ€๊ฒฉ" />
{templestayPrice ? (
<div className={styles.templePriceBox}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/templeDetail/templeReview/TempleReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const TempleReview = () => {
}

return (
<div className={styles.templeReviewWrapper} id="detail-section-1">
<div className={styles.templeReviewWrapper} id="detail-section-0">
<DetailTitle
title="๋ฆฌ๋ทฐ"
isTotal={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const TempleSchedule = ({ schedule }: TempleScheduleProps) => {
}

return (
<div className={styles.templeScheduleContainer} id="detail-section-2">
<div className={styles.templeScheduleContainer} id="detail-section-1">
<DetailTitle title="ํ”„๋กœ๊ทธ๋žจ ์ผ์ •" isTotal={false} />
{parsedSchedule ? (
Object.entries(parsedSchedule).map(([day, programs]) => (
Expand Down
5 changes: 1 addition & 4 deletions src/hooks/useMoveScroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ const useMoveScroll = (type: string, headerHeight: number = 0) => {
const targetElement = document.getElementById(sectionIds[activeIndex]);

if (targetElement) {
const elementPosition =
type === 'detail'
? targetElement.getBoundingClientRect().bottom
: targetElement.getBoundingClientRect().top; // ์š”์†Œ์˜ ํ˜„์žฌ ํ™”๋ฉด ๋‚ด ์œ„์น˜
const elementPosition = targetElement.getBoundingClientRect().top;
const offsetPosition = window.scrollY + elementPosition - headerHeight; // ๋™์ผํ•œ ์œ„์น˜ ๊ณ„์‚ฐ

window.scrollTo({
Expand Down

0 comments on commit 50e6de9

Please sign in to comment.