@@ -9,9 +9,8 @@ import { Button, Card, Heading, Text } from "tw-components";
99
1010enum Step {
1111 Keys = "keys" ,
12- Payment = "payment" ,
13- Explore = "explore" ,
1412 Docs = "docs" ,
13+ Payment = "payment" ,
1514}
1615
1716const 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