fix: type for tool list

pull/12560/head
AkaraChen 1 year ago
parent f03631ff9e
commit f840b7db0c

@ -18,13 +18,13 @@ type Props = {
disableMaxWidth?: boolean disableMaxWidth?: boolean
} }
const List = ({ const List = forwardRef<{ handleScroll: () => void }, Props>(({
wrapElemRef, wrapElemRef,
searchText, searchText,
tags, tags,
list, list,
disableMaxWidth = false, disableMaxWidth = false,
}: Props, ref: any) => { }, ref) => {
const { t } = useTranslation() const { t } = useTranslation()
const hasFilter = !searchText const hasFilter = !searchText
const hasRes = list.length > 0 const hasRes = list.length > 0
@ -120,5 +120,8 @@ const List = ({
</div> </div>
</> </>
) )
} })
export default forwardRef(List)
List.displayName = 'List'
export default List

Loading…
Cancel
Save