1
0
Fork 0
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:
Fedor Katurov 2022-01-04 15:54:40 +07:00
parent 31fc033d4f
commit 7dfa6f89c7
4 changed files with 13 additions and 12 deletions

View file

@ -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 (