Skip to content

Commit

Permalink
refactor: remove tooltip test from DeleteButton (agent)
Browse files Browse the repository at this point in the history
  • Loading branch information
berry-13 committed Dec 14, 2024
1 parent 3690974 commit 7daafac
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions client/src/components/SidePanel/Agents/AgentConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -413,15 +413,10 @@ export default function AgentConfig({
{user?.role === SystemRoles.ADMIN && <AdminSettings />}
{/* Context Button */}
<div className="flex items-center justify-end gap-2">
<TooltipAnchor
description="Delete Agent"
render={
<DeleteButton
agent_id={agent_id}
setCurrentAgentId={setCurrentAgentId}
createMutation={create}
/>
}
<DeleteButton
agent_id={agent_id}
setCurrentAgentId={setCurrentAgentId}
createMutation={create}
/>
{(agent?.author === user?.id || user?.role === SystemRoles.ADMIN) &&
hasAccessToShareAgents && (
Expand Down

0 comments on commit 7daafac

Please sign in to comment.