mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added lab sorting
This commit is contained in:
parent
566e1192cd
commit
948f3a7e04
7 changed files with 63 additions and 15 deletions
|
@ -6,7 +6,18 @@ import { LabContextProvider } from '~/utils/context/LabContextProvider';
|
|||
interface LabProviderProps {}
|
||||
|
||||
const LabProvider: FC<LabProviderProps> = ({ children }) => {
|
||||
const { isLoading, nodes, loadMore, hasMore, tags, heroes, isLoadingStats, updates } = useLab();
|
||||
const {
|
||||
isLoading,
|
||||
nodes,
|
||||
loadMore,
|
||||
hasMore,
|
||||
tags,
|
||||
heroes,
|
||||
isLoadingStats,
|
||||
updates,
|
||||
sort,
|
||||
setSort,
|
||||
} = useLab();
|
||||
|
||||
return (
|
||||
<LabContextProvider
|
||||
|
@ -18,6 +29,8 @@ const LabProvider: FC<LabProviderProps> = ({ children }) => {
|
|||
heroes={heroes}
|
||||
isLoadingStats={isLoadingStats}
|
||||
updates={updates}
|
||||
sort={sort}
|
||||
setSort={setSort}
|
||||
>
|
||||
{children}
|
||||
</LabContextProvider>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue