diff --git a/data/search.json b/data/search.json index 4137634..3f36887 100644 --- a/data/search.json +++ b/data/search.json @@ -1,5 +1,6 @@ { "search": { + "placeholder": "", "defaultProvider": "https://google.com/search?q=", "providers": [ { diff --git a/src/components/searchBar.tsx b/src/components/searchBar.tsx index d1931c5..80c1249 100644 --- a/src/components/searchBar.tsx +++ b/src/components/searchBar.tsx @@ -44,6 +44,7 @@ export interface ISearchProviderProps { } export interface ISearchProps { + placeholder: string; defaultProvider: string; providers: Array | undefined; } @@ -104,6 +105,7 @@ const SearchBar = ({ search }: ISearchBarProps) => { type="text" data-testid="search-input" value={input} + placeholder={search.placeholder} onChange={(e: React.ChangeEvent) => setInput(e.target.value) } diff --git a/src/data/search.json b/src/data/search.json index 4137634..3f36887 100644 --- a/src/data/search.json +++ b/src/data/search.json @@ -1,5 +1,6 @@ { "search": { + "placeholder": "", "defaultProvider": "https://google.com/search?q=", "providers": [ { diff --git a/src/lib/fetcher.tsx b/src/lib/fetcher.tsx index 8899a26..6c8ddb6 100644 --- a/src/lib/fetcher.tsx +++ b/src/lib/fetcher.tsx @@ -68,6 +68,7 @@ export const defaults = { }, search: { search: { + placeholder: '', defaultProvider: "https://google.com/search?q=", providers: [], },