mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-08 06:46:02 +00:00
refactor: remove unused imports and clean up code in various files
This commit is contained in:
@@ -22,7 +22,6 @@ import {
|
||||
DropdownMenuItem,
|
||||
DropdownMenuTrigger,
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import { MCPSessionStatus } from '@/app/infra/entities/api';
|
||||
|
||||
type ExtensionCardComponentProps = {
|
||||
cardVO: ExtensionCardVO;
|
||||
@@ -73,19 +72,6 @@ export default function ExtensionCardComponent({
|
||||
}
|
||||
};
|
||||
|
||||
const getStatusColor = (status?: string) => {
|
||||
switch (status) {
|
||||
case MCPSessionStatus.CONNECTED:
|
||||
return 'text-green-600';
|
||||
case MCPSessionStatus.CONNECTING:
|
||||
return 'text-yellow-600';
|
||||
case MCPSessionStatus.ERROR:
|
||||
return 'text-red-600';
|
||||
default:
|
||||
return 'text-gray-600';
|
||||
}
|
||||
};
|
||||
|
||||
const renderPluginContent = () => (
|
||||
<>
|
||||
<div className="text-[0.7rem] text-muted-foreground truncate w-full">
|
||||
|
||||
Reference in New Issue
Block a user