refactor: remove unused Badge component from ChannelFormBody
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user