mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
tool selecting in configure
This commit is contained in:
parent
f5267d317e
commit
06c4627abb
|
@ -3,7 +3,7 @@ import type { FC, ReactNode } from 'react'
|
|||
import React from 'react'
|
||||
import cn from '@/utils/classnames'
|
||||
|
||||
export interface IFeaturePanelProps {
|
||||
export type IFeaturePanelProps = {
|
||||
className?: string
|
||||
headerIcon?: ReactNode
|
||||
title: ReactNode
|
||||
|
@ -23,7 +23,7 @@ const FeaturePanel: FC<IFeaturePanelProps> = ({
|
|||
children,
|
||||
}) => {
|
||||
return (
|
||||
<div className={cn('rounded-xl border-t-[0.5px] border-l-[0.5px] bg-background-section-burn pb-3', noBodySpacing && '!pb-0', className)}>
|
||||
<div className={cn('rounded-xl border-t-[0.5px] border-l-[0.5px] bg-background-section-burn pb-3', noBodySpacing && 'pb-0', className)}>
|
||||
{/* Header */}
|
||||
<div className={cn('px-3 pt-2', hasHeaderBottomBorder && 'border-b border-divider-subtle')}>
|
||||
<div className='flex justify-between items-center h-8'>
|
||||
|
|
|
@ -92,6 +92,7 @@ const AgentTools: FC = () => {
|
|||
tool_name: tool.tool_name,
|
||||
tool_label: tool.tool_label,
|
||||
tool_parameters: tool.params,
|
||||
notAuthor: !(tool as ToolDefaultValue & { is_team_authorization: boolean }).is_team_authorization,
|
||||
enabled: true,
|
||||
})
|
||||
})
|
||||
|
@ -101,7 +102,7 @@ const AgentTools: FC = () => {
|
|||
return (
|
||||
<>
|
||||
<Panel
|
||||
className="mt-2"
|
||||
className={cn('mt-2', tools.length === 0 && 'pb-2')}
|
||||
noBodySpacing={tools.length === 0}
|
||||
headerIcon={
|
||||
<RiHammerFill className='w-4 h-4 text-primary-500' />
|
||||
|
|
Loading…
Reference in New Issue
Block a user