diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAIAgentsTable.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAIAgentsTable.tsx index ad72da7b02..3268eb0433 100644 --- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAIAgentsTable.tsx +++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAIAgentsTable.tsx @@ -14,7 +14,6 @@ import { useTheme } from '@emotion/react'; import { SettingsPath } from 'twenty-shared/types'; import { getSettingsPath } from 'twenty-shared/utils'; import { - H2Title, IconChevronRight, IconFilter, IconSearch, @@ -26,7 +25,6 @@ import { SETTINGS_AI_AGENT_TABLE_METADATA } from '~/pages/settings/ai/constants/ import { normalizeSearchText } from '~/utils/normalizeSearchText'; import Skeleton from 'react-loading-skeleton'; -import { Section } from 'twenty-ui/layout'; import { useFindManyAgentsQuery } from '~/generated-metadata/graphql'; import { SettingsAIAgentTableRow, @@ -52,11 +50,7 @@ const StyledTableHeaderRow = styled(StyledAIAgentTableRow)` margin-bottom: ${({ theme }) => theme.spacing(2)}; `; -export const SettingsAIAgentsTable = ({ - withSearchBar = true, -}: { - withSearchBar?: boolean; -}) => { +export const SettingsAIAgentsTable = () => { const { data, loading } = useFindManyAgentsQuery(); const { t } = useLingui(); @@ -82,52 +76,45 @@ export const SettingsAIAgentsTable = ({ }); return ( -
- - - {withSearchBar && ( - - - - } - dropdownComponents={ - - - - setShowWorkflowAgents(!showWorkflowAgents) - } - toggled={showWorkflowAgents} - text={t`Workflow agents`} - toggleSize="small" - /> - - - } - /> - - )} + <> + + + + } + dropdownComponents={ + + + + setShowWorkflowAgents(!showWorkflowAgents) + } + toggled={showWorkflowAgents} + text={t`Workflow agents`} + toggleSize="small" + /> + + + } + /> + @@ -165,6 +152,6 @@ export const SettingsAIAgentsTable = ({ /> ))} -
+ ); };