diff --git a/samples/docusaurus/src/pages/search.tsx b/samples/docusaurus/src/pages/search.tsx index 6a2b174..10d7ead 100644 --- a/samples/docusaurus/src/pages/search.tsx +++ b/samples/docusaurus/src/pages/search.tsx @@ -5,6 +5,7 @@ import { BuiltinFilterTemplates } from "@pnp/modern-search-core/dist/es6/models/ import { FilterConditionOperator } from "@pnp/modern-search-core/dist/es6/models/common/IDataFilter"; import { FilterSortDirection, FilterSortType } from "@pnp/modern-search-core/dist/es6/models/common/IDataFilterConfiguration"; import { EntityType } from "@pnp/modern-search-core/dist/es6/models/search/IMicrosoftSearchRequest"; +import BrowserOnly from "@docusaurus/BrowserOnly"; const SearchInputWebComponent = wrapWc>('pnp-search-input'); const SearchFiltersWebComponent = wrapWc>('pnp-search-filters'); @@ -14,75 +15,79 @@ export default function Searchpage(): JSX.Element { return
- <> - - - - - - - + + + ; + }} +
diff --git a/samples/docusaurus/src/theme/SearchBar.tsx b/samples/docusaurus/src/theme/SearchBar.tsx index 60e0c8c..4e84126 100644 --- a/samples/docusaurus/src/theme/SearchBar.tsx +++ b/samples/docusaurus/src/theme/SearchBar.tsx @@ -2,6 +2,7 @@ import { wrapWc } from 'wc-react'; import { MgtLogin, SearchInputComponent } from '@pnp/modern-search-core'; import { PageOpenBehavior, QueryPathBehavior } from '@pnp/modern-search-core/dist/es6/helpers/UrlHelper'; import React from "react"; +import BrowserOnly from '@docusaurus/BrowserOnly'; const SearchInputWebComponent = wrapWc>('pnp-search-input'); const MgtLoginWebComponent = wrapWc>('mgt-login'); @@ -9,18 +10,23 @@ const MgtLoginWebComponent = wrapWc>('mgt-login'); export default function SearchBar() { return
+ + {() => { + return <> + - - - + + ; + }} +
; } \ No newline at end of file