We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51d84ff commit aa452beCopy full SHA for aa452be
src/pages/user/Onboarding.tsx
@@ -21,6 +21,11 @@ const Onboarding = ({ onClose }: OnboardingProps) => {
21
const { elementRef: ref4, isInView: inView4 } = useInView<HTMLDivElement>(0.7, () => {});
22
const [current, setCurrent] = useState(0);
23
24
+ const handleActive = () => {
25
+ if (inView4) return true;
26
+ else return false;
27
+ };
28
+
29
const handleSelect = () => {
30
if (!api) return;
31
const selectedIndex = api.selectedScrollSnap();
@@ -117,7 +122,7 @@ const Onboarding = ({ onClose }: OnboardingProps) => {
117
122
<Button
118
123
className="mx-auto my-4"
119
124
size="big"
120
- active={true}
125
+ active={handleActive()}
121
126
text="시작하기"
127
onClickHandler={onClose}
128
bgColor="dark"
0 commit comments