Skip to content

Commit

Permalink
fix: mock store search
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 29, 2021
1 parent 8733a1e commit 527bd93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/blocks/src/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { DocInfo } from '@component-controls/core';
import { useSearch } from '@component-controls/store';
import { DocumentItem } from '../DocumentItem';

/**
* search input component connected to the store
*/
export const Search: FC<Omit<
SearchInputProps<DocInfo>,
'items' | 'onSearch'
Expand Down
1 change: 1 addition & 0 deletions ui/blocks/src/test/storyStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import img_example from './image_example.jpg';

export const store: Store = {
...getDefaultStore(),
search: require('@component-controls/search-fusejs').default,
config: {
...deepMerge(defaultBuildConfig, defaultRunConfig),
renderFn: reactRender,
Expand Down

0 comments on commit 527bd93

Please sign in to comment.