Merge pull request #32 from thedeany/add-placeholder-for-search
Add ability to set search placeholder text
This commit is contained in:
commit
c3188882d9
4 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,7 @@ export interface ISearchProviderProps {
|
|||
}
|
||||
|
||||
export interface ISearchProps {
|
||||
placeholder: string;
|
||||
defaultProvider: string;
|
||||
providers: Array<ISearchProviderProps> | undefined;
|
||||
}
|
||||
|
@ -102,6 +103,7 @@ const SearchBar = ({ search }: ISearchBarProps) => {
|
|||
type="text"
|
||||
data-testid="search-input"
|
||||
value={input}
|
||||
placeholder={search.placeholder}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
|
||||
setInput(e.target.value)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue