mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
moved search provider to the top of the app
This commit is contained in:
parent
31fc033d4f
commit
7dfa6f89c7
4 changed files with 13 additions and 12 deletions
|
@ -20,7 +20,7 @@ export const SearchContext = createContext<SearchContextProps>({
|
|||
loadMore: () => {},
|
||||
});
|
||||
|
||||
export const SearchContextProvider: FC = ({ children }) => {
|
||||
export const SearchProvider: FC = ({ children }) => {
|
||||
const { results, searchText, isLoading, loadMore, setSearchText, hasMore } = useSearch();
|
||||
|
||||
return (
|
Loading…
Add table
Add a link
Reference in a new issue