mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +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
|
@ -2,7 +2,7 @@ import React, { FC } from 'react';
|
|||
import { FlowLayout } from '~/layouts/FlowLayout';
|
||||
import { useFlow } from '~/hooks/flow/useFlow';
|
||||
import { FlowContextProvider } from '~/utils/context/FlowContextProvider';
|
||||
import { SearchContextProvider } from '~/utils/context/SearchContextProvider';
|
||||
import { SearchProvider } from '~/utils/providers/SearchProvider';
|
||||
import { observer } from 'mobx-react';
|
||||
|
||||
interface Props {}
|
||||
|
@ -18,9 +18,7 @@ const FlowPage: FC<Props> = observer(() => {
|
|||
nodes={nodes}
|
||||
onChangeCellView={onChangeCellView}
|
||||
>
|
||||
<SearchContextProvider>
|
||||
<FlowLayout isFluid={isFluid} onToggleLayout={toggleLayout} />
|
||||
</SearchContextProvider>
|
||||
<FlowLayout isFluid={isFluid} onToggleLayout={toggleLayout} />
|
||||
</FlowContextProvider>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue