Skip to content

Commit

Permalink
docs: commented code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
yashsehgal committed Jun 10, 2022
1 parent 1d92311 commit 3eb28af
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions src/Onboarding.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,46 +211,4 @@ function manageOnboardingContent_onSlide(currentState=0) {
];

return { content: onboardingContent[currentState], totalSlideCount: onboardingContent.length - 1};
}

// showSlideCount is a sub-component here
// getting used to render the active-slide navigation feature

// function ShowSlideNavigation({activeSlideIndex=0, totalSlideCount}) {
// let dotsContainer = [];
// useEffect(() => {
// for (let dotCount = 0; dotCount <= totalSlideCount; dotCount++) {
// dotsContainer.push(
// dotCount === activeSlideIndex
// ? <React.Fragment>
// <div className="p-1 w-1 h-1 rounded-full bg-white" />
// </React.Fragment>
// : <React.Fragment>
// <div className="p-1 w-1 h-1 rounded-full bg-white bg-opacity-30" />
// </React.Fragment>
// )
// }
// });

// if (!totalSlideCount) return <React.Fragment></React.Fragment>;

// if (!activeSlideIndex) {
// return (
// <React.Fragment>
// <div className="navigation-dots-component-wrapper w-fit h-fit flex flex-row items-center justify-between mx-auto gap-2 mt-2">
// {dotsContainer.map((dot, dotIndex) => {
// return (
// <React.Fragment key={dotIndex}>{dot}</React.Fragment>
// )
// })}
// </div>
// </React.Fragment>
// )
// } else {
// return (
// <React.Fragment>

// </React.Fragment>
// )
// }
// }
}

1 comment on commit 3eb28af

@vercel
Copy link

@vercel vercel bot commented on 3eb28af Jun 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.