@@ -9,9 +9,8 @@ import { Button, Card, Heading, Text } from "tw-components";
9
9
10
10
enum Step {
11
11
Keys = "keys" ,
12
- Payment = "payment" ,
13
- Explore = "explore" ,
14
12
Docs = "docs" ,
13
+ Payment = "payment" ,
15
14
}
16
15
17
16
const STEPS = [
@@ -33,14 +32,6 @@ const STEPS = [
33
32
href : "/dashboard/settings/billing" ,
34
33
external : false ,
35
34
} ,
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
- } ,
44
35
{
45
36
key : Step . Docs ,
46
37
title : "Explore Docs" ,
@@ -67,9 +58,8 @@ export const OnboardingSteps: React.FC = () => {
67
58
CompletedStep | undefined
68
59
> ( `onboarding-step-${ meQuery ?. data ?. id } ` , undefined , {
69
60
[ Step . Keys ] : false ,
70
- [ Step . Payment ] : false ,
71
- [ Step . Explore ] : false ,
72
61
[ Step . Docs ] : false ,
62
+ [ Step . Payment ] : false ,
73
63
} ) ;
74
64
75
65
const [ currentStep , setCurrentStep ] = useState < Step | null > ( null ) ;
@@ -89,15 +79,13 @@ export const OnboardingSteps: React.FC = () => {
89
79
90
80
if ( ! ( Step . Keys in savedStep ) && apiKeysQuery . data ?. length === 0 ) {
91
81
setCurrentStep ( Step . Keys ) ;
82
+ } else if ( ! ( Step . Docs in savedStep ) ) {
83
+ setCurrentStep ( Step . Docs ) ;
92
84
} else if (
93
85
! ( Step . Payment in savedStep ) &&
94
86
meQuery ?. data ?. status !== "validPayment"
95
87
) {
96
88
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 ) ;
101
89
} else {
102
90
setCurrentStep ( null ) ;
103
91
}
0 commit comments