Compare commits
1 Commits
0.6.0
...
ashwin/err
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b05ffa7b1 |
@@ -23,6 +23,7 @@ import {
|
|||||||
MessageSquare,
|
MessageSquare,
|
||||||
Hammer,
|
Hammer,
|
||||||
Play,
|
Play,
|
||||||
|
X,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
@@ -223,6 +224,10 @@ const App = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const clearError = () => {
|
||||||
|
setError(null);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex h-screen bg-gray-100">
|
<div className="flex h-screen bg-gray-100">
|
||||||
<Sidebar connectionStatus={connectionStatus} />
|
<Sidebar connectionStatus={connectionStatus} />
|
||||||
@@ -272,6 +277,15 @@ const App = () => {
|
|||||||
Connect
|
Connect
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
{error && (
|
||||||
|
<div className="mt-2 flex items-center">
|
||||||
|
<p className="text-red-500 mr-2">{error}</p>
|
||||||
|
<Button onClick={clearError} variant="outline" size="sm">
|
||||||
|
<X className="w-4 h-4" />
|
||||||
|
Clear Error
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{mcpClient ? (
|
{mcpClient ? (
|
||||||
<Tabs defaultValue="resources" className="w-full p-4">
|
<Tabs defaultValue="resources" className="w-full p-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user