refactor: remove unused Badge component from ChannelFormBody

This commit is contained in:
mlogclub
2026-07-27 23:43:34 +08:00
parent fd36b68571
commit 36a7511e57
@@ -10,7 +10,6 @@ import { toast } from "sonner"
import { getWidgetDemoPath } from "@/components/support-chat/demo-navigation" import { getWidgetDemoPath } from "@/components/support-chat/demo-navigation"
import { OptionCombobox } from "@/components/option-combobox" import { OptionCombobox } from "@/components/option-combobox"
import { ProjectDialog } from "@/components/project-dialog" import { ProjectDialog } from "@/components/project-dialog"
import { Badge } from "@/components/ui/badge"
import { Button } from "@/components/ui/button" import { Button } from "@/components/ui/button"
import { import {
Field, Field,
@@ -553,14 +552,6 @@ function ChannelFormBody({
Agent AI Agent Revision Agent AI Agent Revision
</div> </div>
) : null} ) : null}
{selectedAIAgent && isAgentChannelBindable(selectedAIAgent) ? (
<div className="flex items-center gap-2 text-xs text-muted-foreground">
<Badge variant="secondary">
</Badge>
<span>Revision #{selectedAIAgent.publishedRevisionId}</span>
</div>
) : null}
<FieldError errors={[errors.aiAgentId]} /> <FieldError errors={[errors.aiAgentId]} />
</FieldContent> </FieldContent>
</Field> </Field>