diff --git a/src/theme/SearchBar.js b/src/theme/SearchBar.js index a522b378cf..381d9012c0 100644 --- a/src/theme/SearchBar.js +++ b/src/theme/SearchBar.js @@ -1,82 +1,10 @@ -// By default, the classic theme does not provide any SearchBar implementation -// If you swizzled this, it is your responsibility to provide an implementation -// Tip: swizzle the SearchBar from the Algolia theme for inspiration: -// npm run swizzle @docusaurus/theme-search-algolia SearchBar -export {default} from '@docusaurus/Noop'; -import 'instantsearch.css/themes/satellite.css'; +import React from 'react'; +import SearchBar from '@theme-original/SearchBar'; -import algoliasearch from 'algoliasearch/lite'; -import { - InstantSearch, - SearchBox, - Hits, - Highlight, - RefinementList, -} from 'react-instantsearch-hooks-web'; - -const searchClient = algoliasearch('2SJPGMLW1Q', 'fb2f4e1fb40f962900631121cb365549'); - -// ... - -function App() { - return ( - - - - - - ); -} - -import { Configure } from 'react-instantsearch'; - - - -import { Hits } from 'react-instantsearch'; - -const indexName = crawler_sumodocs; - -function Hit({ hit }) { +export default function SearchBarWrapper(props) { return ( -
- {/* ... */} -
+ <> + + ); } - -// ... - -
- {/* ... */} - -
- - -window.dataLayer.push({ - algoliaUserToken: 'user-1', -}); - -aa('onUserTokenChange', (userToken) => { - window.dataLayer.push({ - algoliaUserToken: userToken, - }); -}, { immediate: true }); - - diff --git a/src/theme/SearchBar/index.js b/src/theme/SearchBar/index.js deleted file mode 100644 index 381d9012c0..0000000000 --- a/src/theme/SearchBar/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import SearchBar from '@theme-original/SearchBar'; - -export default function SearchBarWrapper(props) { - return ( - <> - - - ); -}