@@ -23,7 +23,6 @@ import {
2323 Zap ,
2424} from "lucide-react" ;
2525import Link from "next/link" ;
26- import { useRouter } from "next/router" ;
2726import { useEffect , useState } from "react" ;
2827import { useOrgOnboarding } from "../../../services/hooks/useOrgOnboarding" ;
2928import { useOrg } from "../../layout/org/organizationContext" ;
@@ -72,11 +71,11 @@ const QuickstartPage = () => {
7271 const [ testRequestId , setTestRequestId ] = useState < string | null > ( null ) ;
7372 const [ testError , setTestError ] = useState < string | null > ( null ) ;
7473
75- const { hasKeys, hasProviderKeys, updateOnboardingStatus } = useOrgOnboarding (
74+ const { hasKeys, hasProviderKeys } = useOrgOnboarding (
7675 org ?. currentOrg ?. id ?? "" ,
7776 ) ;
7877
79- const { data : creditData , isLoading : creditsLoading } = useCredits ( ) ;
78+ const { data : creditData } = useCredits ( ) ;
8079 const hasCredits = ( creditData ?. balance ?? 0 ) > 0 ;
8180 const hasBillingSetup = hasCredits || hasProviderKeys ;
8281
@@ -92,7 +91,7 @@ const QuickstartPage = () => {
9291 if ( hasKeys === false ) {
9392 setQuickstartKey ( undefined ) ;
9493 }
95- } , [ hasKeys ] ) ;
94+ } , [ hasKeys , setQuickstartKey ] ) ;
9695
9796 useEffect ( ( ) => {
9897 setToolHandler ( "quickstart-open-integration-guide" , async ( ) => {
@@ -222,32 +221,6 @@ const QuickstartPage = () => {
222221 isCompleted = { isCompleted ?? false }
223222 link = { step . link }
224223 rightContent = { step . description }
225- rightComponent = {
226- index === 0 ? (
227- < div className = "flex items-center gap-3 text-xs text-muted-foreground" >
228- < a
229- href = "/credits"
230- target = "_blank"
231- rel = "noopener noreferrer"
232- className = "flex items-center gap-1 transition-colors hover:text-foreground"
233- onClick = { ( e ) => e . stopPropagation ( ) }
234- >
235- < span > Add credits</ span >
236- < MoveUpRight size = { 12 } />
237- </ a >
238- < a
239- href = "/settings/providers"
240- target = "_blank"
241- rel = "noopener noreferrer"
242- className = "flex items-center gap-1 transition-colors hover:text-foreground"
243- onClick = { ( e ) => e . stopPropagation ( ) }
244- >
245- < span > Configure keys</ span >
246- < MoveUpRight size = { 12 } />
247- </ a >
248- </ div >
249- ) : undefined
250- }
251224 headerAction = {
252225 index === 2 ? (
253226 < TooltipProvider >
@@ -339,7 +312,7 @@ const QuickstartPage = () => {
339312 </ div >
340313
341314 { /* BYOK Option - Simple text link */ }
342- < div className = "flex items-center justify-center pt -2" >
315+ < div className = "flex items-center justify-start pl-4 pt-4 pb -2" >
343316 < button
344317 onClick = { ( ) => setIsProviderSheetOpen ( true ) }
345318 className = "group flex items-center gap-1 text-sm text-muted-foreground transition-colors hover:text-foreground"
0 commit comments