parent
b91983dc56
commit
80630cb36d
3 changed files with 5 additions and 3 deletions
|
|
@ -24,7 +24,7 @@ export type DocSearchTranslations = Partial<{
|
|||
}>;
|
||||
|
||||
export interface DocSearchProps {
|
||||
appId?: string;
|
||||
appId: string;
|
||||
apiKey: string;
|
||||
indexName: string;
|
||||
placeholder?: string;
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export type DocSearchModalProps = DocSearchProps & {
|
|||
};
|
||||
|
||||
export function DocSearchModal({
|
||||
appId = 'BH4D9OD16A',
|
||||
appId,
|
||||
apiKey,
|
||||
indexName,
|
||||
placeholder = 'Search docs',
|
||||
|
|
|
|||
|
|
@ -13,7 +13,9 @@ import { DocSearch as DocSearchComponent } from '../DocSearch';
|
|||
import type { DocSearchProps } from '../DocSearch';
|
||||
|
||||
function DocSearch(props: Partial<DocSearchProps>) {
|
||||
return <DocSearchComponent apiKey="foo" indexName="bar" {...props} />;
|
||||
return (
|
||||
<DocSearchComponent appId="woo" apiKey="foo" indexName="bar" {...props} />
|
||||
);
|
||||
}
|
||||
|
||||
// mock empty response
|
||||
|
|
|
|||
Loading…
Reference in a new issue