feedback fixups

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2022-04-11 16:40:47 +02:00
parent ab230a433f
commit b7d035cc29
12 changed files with 35 additions and 48 deletions
@@ -40,7 +40,6 @@ type SearchContextValue = {
} & SearchContextState;
/**
* The initial state of `SearchContextProvider`.
*
* @public
*/
@@ -58,6 +57,10 @@ export const SearchContext = createContext<SearchContextValue | undefined>(
undefined,
);
/**
* The initial state of `SearchContextProvider`.
*
*/
const searchInitialState: SearchContextState = {
term: '',
pageCursor: undefined,
+9 -2
View File
@@ -14,5 +14,12 @@
* limitations under the License.
*/
export * from './api';
export * from './context';
export { searchApiRef } from './api';
export type { SearchApi } from './api';
export {
SearchContextProvider,
useSearch,
SearchContextProviderForStorybook,
SearchApiProviderForStorybook,
} from './context';
export type { SearchContextState } from './context';