Skip to content

Commit

Permalink
disable skipping in onboard
Browse files Browse the repository at this point in the history
  • Loading branch information
rishimohan committed Nov 27, 2023
1 parent 327cbe2 commit d02276f
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions apps/web/pages/getting-started/[[...step]].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,22 +157,20 @@ const OnboardingPage = () => {
</Suspense>
</StepCard>

{process.env.NODE_ENV != "production"
? headers[currentStepIndex]?.skipText && (
<div className="flex w-full flex-row justify-center">
<Button
color="minimal"
data-testid="skip-step"
onClick={(event) => {
event.preventDefault();
goToIndex(currentStepIndex + 1);
}}
className="mt-8 cursor-pointer px-4 py-2 font-sans text-sm font-medium">
{headers[currentStepIndex]?.skipText}
</Button>
</div>
)
: ""}
{headers[currentStepIndex]?.skipText && (
<div className="flex w-full flex-row justify-center">
<Button
color="minimal"
data-testid="skip-step"
onClick={(event) => {
event.preventDefault();
goToIndex(currentStepIndex + 1);
}}
className="mt-8 cursor-pointer px-4 py-2 font-sans text-sm font-medium">
{headers[currentStepIndex]?.skipText}
</Button>
</div>
)}
</div>
</div>
</div>
Expand Down

0 comments on commit d02276f

Please sign in to comment.