Skip to content

Commit aa452be

Browse files
committed
Hotfix: 온보딩 스킵 안되도록 변경
1 parent 51d84ff commit aa452be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pages/user/Onboarding.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const Onboarding = ({ onClose }: OnboardingProps) => {
2121
const { elementRef: ref4, isInView: inView4 } = useInView<HTMLDivElement>(0.7, () => {});
2222
const [current, setCurrent] = useState(0);
2323

24+
const handleActive = () => {
25+
if (inView4) return true;
26+
else return false;
27+
};
28+
2429
const handleSelect = () => {
2530
if (!api) return;
2631
const selectedIndex = api.selectedScrollSnap();
@@ -117,7 +122,7 @@ const Onboarding = ({ onClose }: OnboardingProps) => {
117122
<Button
118123
className="mx-auto my-4"
119124
size="big"
120-
active={true}
125+
active={handleActive()}
121126
text="시작하기"
122127
onClickHandler={onClose}
123128
bgColor="dark"

0 commit comments

Comments
 (0)