From e7d470d650d2ef3a4ff3791ced3fadf7e54cec06 Mon Sep 17 00:00:00 2001 From: Tobias Bleckert Date: Wed, 22 Jun 2022 17:51:18 +0200 Subject: [PATCH] Fix types --- src/SelectSearch.jsx | 2 +- src/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SelectSearch.jsx b/src/SelectSearch.jsx index 84f389a..9b2a902 100644 --- a/src/SelectSearch.jsx +++ b/src/SelectSearch.jsx @@ -178,7 +178,7 @@ SelectSearch.propTypes = { renderGroupHeader: PropTypes.func, renderValue: PropTypes.func, emptyMessage: PropTypes.oneOfType([ - PropTypes.string, + PropTypes.node, PropTypes.func, ]), diff --git a/src/index.d.ts b/src/index.d.ts index 4dc752a..658db27 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -88,7 +88,7 @@ export type SelectSearchProps = { getOptions?: (query:string) => Promise debounce?: number ref?:Ref - emptyMessage?:string|(() =>string) + emptyMessage?:ReactNode|(() => ReactNode) } export const SelectSearch:FunctionComponent