Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 81489db

Browse files
committed
Inview가 button에 스타일 영향을 주는 현상 수정
1 parent c47ab34 commit 81489db

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

packages/tds-widget/src/directions-finder/direction-buttons.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,18 @@ export function DirectionButtons({
8383
onCallGrabButtonIntersecting?.(inView, entry)
8484
}
8585
>
86-
<Button
87-
basic
88-
inverted
89-
color="blue"
90-
size="small"
91-
onClick={onCallGrabButtonClick}
92-
>
93-
{t('grab-hocul')}
94-
</Button>
86+
{({ ref: inViewRef }) => (
87+
<Button
88+
ref={inViewRef}
89+
basic
90+
inverted
91+
color="blue"
92+
size="small"
93+
onClick={onCallGrabButtonClick}
94+
>
95+
{t('grab-hocul')}
96+
</Button>
97+
)}
9598
</InView>
9699
) : null}
97100

0 commit comments

Comments
 (0)