Skip to content

Commit 5aa1e1b

Browse files
committed
build errors
1 parent c747f84 commit 5aa1e1b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

apps/web/src/app/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

apps/web/src/components/sidebar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

apps/web/src/components/token-prompt.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
"use client"
22

3-
import { SquareArrowOutUpRight } from 'lucide-react'
43
import { useQueryState } from 'nuqs'
54
import { useState } from 'react'
65
import { Button } from './ui/button'
76
import { 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

0 commit comments

Comments
 (0)