update pay ui
This commit is contained in:
@@ -106,15 +106,18 @@ const SearchActions = memo<{
|
||||
onWatchlistToggle,
|
||||
}) => {
|
||||
// 股票搜索 Hook
|
||||
const {
|
||||
searchResults,
|
||||
isSearching,
|
||||
handleSearch: doSearch,
|
||||
clearSearch,
|
||||
} = useStockSearch({
|
||||
const searchHook = useStockSearch({
|
||||
limit: 10,
|
||||
debounceMs: 300,
|
||||
});
|
||||
onSearch: () => {}, // 空回调,追踪在父组件处理
|
||||
}) as {
|
||||
searchResults: StockSearchResult[];
|
||||
isSearching: boolean;
|
||||
handleSearch: (query: string) => void;
|
||||
clearSearch: () => void;
|
||||
};
|
||||
|
||||
const { searchResults, isSearching, handleSearch: doSearch, clearSearch } = searchHook;
|
||||
|
||||
// 转换为 AutoComplete options
|
||||
const stockOptions = useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user