mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 19:36:53 +08:00
feat: new icons (#5412)
This commit is contained in:
@@ -3,9 +3,11 @@ import type { FC } from 'react'
|
||||
import React, { useState } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { useClickAway } from 'ahooks'
|
||||
import {
|
||||
RiAddLine,
|
||||
RiArrowDownSLine,
|
||||
} from '@remixicon/react'
|
||||
import Toast from '../../base/toast'
|
||||
import { Plus } from '../../base/icons/src/vender/line/general'
|
||||
import { ChevronDown } from '../../base/icons/src/vender/line/arrows'
|
||||
import examples from './examples'
|
||||
import Button from '@/app/components/base/button'
|
||||
import { importSchemaFromURL } from '@/service/tools'
|
||||
@@ -59,7 +61,7 @@ const GetSchema: FC<Props> = ({
|
||||
className='flex items-center !h-6 !px-2 space-x-1 '
|
||||
onClick={() => { setShowImportFromUrl(!showImportFromUrl) }}
|
||||
>
|
||||
<Plus className='w-3 h-3' />
|
||||
<RiAddLine className='w-3 h-3' />
|
||||
<div className='text-xs font-medium text-gray-700'>{t('tools.createTool.importFromUrl')}</div>
|
||||
</Button>
|
||||
{showImportFromUrl && (
|
||||
@@ -91,7 +93,7 @@ const GetSchema: FC<Props> = ({
|
||||
onClick={() => { setShowExamples(!showExamples) }}
|
||||
>
|
||||
<div className='text-xs font-medium text-gray-700'>{t('tools.createTool.examples')}</div>
|
||||
<ChevronDown className='w-3 h-3' />
|
||||
<RiArrowDownSLine className='w-3 h-3' />
|
||||
</Button>
|
||||
{showExamples && (
|
||||
<div className='absolute top-7 right-0 p-1 rounded-lg bg-white shadow-sm'>
|
||||
|
||||
Reference in New Issue
Block a user