fix: refine AI agent config dialog header
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
"use client"
|
||||
|
||||
import { useRouter } from "next/navigation"
|
||||
import { useState } from "react"
|
||||
|
||||
import { AIAgentConfigWorkbench } from "../_components/config-workbench"
|
||||
@@ -11,15 +10,11 @@ function readAgentIdFromLocation() {
|
||||
}
|
||||
|
||||
export default function DashboardAIAgentConfigPage() {
|
||||
const router = useRouter()
|
||||
const [agentId] = useState(() => readAgentIdFromLocation())
|
||||
|
||||
return (
|
||||
<div className="h-[calc(100vh-var(--header-height))] min-h-0">
|
||||
<AIAgentConfigWorkbench
|
||||
agentId={agentId}
|
||||
onClose={() => router.push("/dashboard/ai-agents")}
|
||||
/>
|
||||
<AIAgentConfigWorkbench agentId={agentId} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user