Compare commits

...

1 Commits

Author SHA1 Message Date
yyh
4929a67885 refactor(web): simplify the member selector component
Use a typed function declaration instead of React.FC and remove the redundant React namespace import. Preserve the component API and behavior without mixing this style cleanup into the following accessibility layer.
2026-08-09 12:08:50 +08:00

View File

@@ -1,8 +1,6 @@
'use client'
import type { FC } from 'react'
import { Avatar } from '@langgenius/dify-ui/avatar'
import { Popover, PopoverContent, PopoverTrigger } from '@langgenius/dify-ui/popover'
import * as React from 'react'
import { useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
import Input from '@/app/components/base/input'
@@ -14,7 +12,7 @@ type Props = Readonly<{
exclude?: string[]
}>
const MemberSelector: FC<Props> = ({ value, onSelect, exclude = [] }) => {
function MemberSelector({ value, onSelect, exclude = [] }: Props) {
const { t } = useTranslation()
const [open, setOpen] = useState(false)
const [searchValue, setSearchValue] = useState('')