mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
use SearchModel
This commit is contained in:
parent
ff4b68e147
commit
4611669dfe
@ -5,7 +5,7 @@ import classnames from "classnames"
|
||||
import { UserPreview } from "components"
|
||||
import { Icons, createIconRender } from "components/Icons"
|
||||
|
||||
import FeedModel from "models/feed"
|
||||
import SearchModel from "models/search"
|
||||
|
||||
import "./index.less"
|
||||
|
||||
@ -93,7 +93,7 @@ export default (props) => {
|
||||
return setSearchResult(null)
|
||||
}
|
||||
|
||||
const result = await FeedModel.search(value)
|
||||
const result = await SearchModel.search(value)
|
||||
|
||||
return setSearchResult(result)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user