File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export default function AppPage({ params }: { params: Promise<{ id: string }> })
6767 < p className = "text-sm text-red-500" > { error } </ p >
6868 ) }
6969 { ! token || ! isValidToken && (
70- < TokenPrompt error = { error } />
70+ < TokenPrompt />
7171 ) }
7272 < Component />
7373 </ div >
Original file line number Diff line number Diff line change @@ -71,13 +71,13 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
7171 const [ token , setToken ] = useQueryState ( 'token' ) ;
7272 const [ toolStates , setToolStates ] = useState < Record < string , ToolState > > ( { } ) ;
7373 const [ isLoading , setIsLoading ] = useState ( false ) ;
74- const [ error , setError ] = useState < string > ( ) ;
74+ // const [error,setError] = useState<string>();
7575
7676 useEffect ( ( ) => {
7777 async function fetchToolStates ( ) {
7878 if ( ! token ) return ;
7979 setIsLoading ( true ) ;
80- setError ( undefined ) ;
80+ // setError(undefined);
8181 try {
8282 const allStates = await checkToolState ( token ) ;
8383 const states = Object . values ( TOOLS ) . map ( ( app ) => {
@@ -86,11 +86,11 @@ function SidebarContent({ activeAppId }: { activeAppId?: string }) {
8686 setToolStates ( Object . fromEntries ( states ) ) ;
8787 } catch ( error ) {
8888 if ( error instanceof InvalidTokenError ) {
89- setError ( 'Invalid token' ) ;
89+ // setError('Invalid token');
9090 setToken ( null ) ;
9191 } else {
9292 console . error ( 'Failed to fetch tool states:' , error ) ;
93- setError ( 'Failed to fetch tool states' ) ;
93+ // setError('Failed to fetch tool states');
9494 }
9595 } finally {
9696 setIsLoading ( false ) ;
Original file line number Diff line number Diff line change 11"use client"
22
3- import { SquareArrowOutUpRight } from 'lucide-react'
43import { useQueryState } from 'nuqs'
54import { useState } from 'react'
65import { Button } from './ui/button'
76import { Input } from './ui/input'
87
9- export default function TokenPrompt ( { error } : { error ?: string } ) {
8+ export default function TokenPrompt ( ) {
109 const [ token , setToken ] = useQueryState ( 'token' )
1110 const [ inputToken , setInputToken ] = useState ( '' )
1211
You can’t perform that action at this time.
0 commit comments