Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] QA 5차 대응 #237

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading