feat: new icons (#5412)

This commit is contained in:
zxhlyh
2024-06-20 11:05:08 +08:00
committed by GitHub
parent 0105129fa8
commit 2328ed8ffa
338 changed files with 880 additions and 3669 deletions

View File

@@ -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'>