Skip to content

Commit b64e756

Browse files
authored
chore: fix onboarding steps (#1865)
1 parent 493c327 commit b64e756

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

components/onboarding/Steps.tsx

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import { Button, Card, Heading, Text } from "tw-components";
99

1010
enum Step {
1111
Keys = "keys",
12-
Payment = "payment",
13-
Explore = "explore",
1412
Docs = "docs",
13+
Payment = "payment",
1514
}
1615

1716
const STEPS = [
@@ -33,14 +32,6 @@ const STEPS = [
3332
href: "/dashboard/settings/billing",
3433
external: false,
3534
},
36-
{
37-
key: Step.Explore,
38-
title: "Explore Templates",
39-
description: "Learn what you can build with ready-to-ship contracts.",
40-
cta: "Explore",
41-
href: "/explore",
42-
external: false,
43-
},
4435
{
4536
key: Step.Docs,
4637
title: "Explore Docs",
@@ -67,9 +58,8 @@ export const OnboardingSteps: React.FC = () => {
6758
CompletedStep | undefined
6859
>(`onboarding-step-${meQuery?.data?.id}`, undefined, {
6960
[Step.Keys]: false,
70-
[Step.Payment]: false,
71-
[Step.Explore]: false,
7261
[Step.Docs]: false,
62+
[Step.Payment]: false,
7363
});
7464

7565
const [currentStep, setCurrentStep] = useState<Step | null>(null);
@@ -89,15 +79,13 @@ export const OnboardingSteps: React.FC = () => {
8979

9080
if (!(Step.Keys in savedStep) && apiKeysQuery.data?.length === 0) {
9181
setCurrentStep(Step.Keys);
82+
} else if (!(Step.Docs in savedStep)) {
83+
setCurrentStep(Step.Docs);
9284
} else if (
9385
!(Step.Payment in savedStep) &&
9486
meQuery?.data?.status !== "validPayment"
9587
) {
9688
setCurrentStep(Step.Payment);
97-
} else if (!(Step.Explore in savedStep)) {
98-
setCurrentStep(Step.Explore);
99-
} else if (!(Step.Docs in savedStep)) {
100-
setCurrentStep(Step.Docs);
10189
} else {
10290
setCurrentStep(null);
10391
}

0 commit comments

Comments
 (0)