Merge pull request #8302 from backstage/feat/search-modal-context

[Search] Search Modal now relies on the Search Context
This commit is contained in:
Ben Lambert
2021-12-02 13:08:51 +01:00
committed by GitHub
9 changed files with 93 additions and 30 deletions
+4 -2
View File
@@ -114,13 +114,15 @@ const routes = (
In `Root.tsx`, add the `SidebarSearchModal` component:
```bash
import { SidebarSearchModal } from '@backstage/plugin-search';
import { SidebarSearchModal, SearchContextProvider } from '@backstage/plugin-search';
export const Root = ({ children }: PropsWithChildren<{}>) => (
<SidebarPage>
<Sidebar>
<SidebarLogo />
<SidebarSearchModal />
<SearchContextProvider>
<SidebarSearchModal />
</SearchContextProvider>
<SidebarDivider />
...
```