refactor: export DocSearch components as Button and Modal
This commit is contained in:
parent
a0699fd979
commit
15ddd0aa5f
3 changed files with 4 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ interface DocSearchProps
|
|||
}): JSX.Element;
|
||||
}
|
||||
|
||||
export function DocSearch({
|
||||
export function DocSearchModal({
|
||||
appId = 'BH4D9OD16A',
|
||||
apiKey,
|
||||
indexName,
|
||||
|
|
@ -126,6 +126,7 @@ export function DocSearch({
|
|||
onStateChange({ state }) {
|
||||
setState(state as any);
|
||||
},
|
||||
// @ts-ignore Temporarily ignore bad typing in autocomplete-core.
|
||||
getSources({ query, state, setContext, setStatus }) {
|
||||
if (!query) {
|
||||
return [
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
export * from './DocSearch';
|
||||
export * from './SearchButton';
|
||||
export * from './DocSearchModal';
|
||||
export * from './DocSearchButton';
|
||||
|
|
|
|||
Loading…
Reference in a new issue