mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor(web): migrate custom React icons to Iconify CSS (#42716)
This commit is contained in:
964 files changed
+1567
-46232
No files matched your search
@@ -3,7 +3,6 @@ import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/pop
|
||||
import { RiFontSize } from '@remixicon/react'
|
||||
import { memo } from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { Check } from '@/app/components/base/icons/src/vender/line/general'
|
||||
import { useFontSize } from './hooks'
|
||||
|
||||
const FontSizeSelector = () => {
|
||||
@@ -60,7 +59,12 @@ const FontSizeSelector = () => {
|
||||
}}
|
||||
>
|
||||
<div style={{ fontSize: font.key }}>{font.value}</div>
|
||||
{fontSize === font.key && <Check className="size-4 text-text-accent" />}
|
||||
{fontSize === font.key && (
|
||||
<span
|
||||
aria-hidden
|
||||
className="i-custom-vender-line-general-check size-4 text-text-accent"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user