More typing
This commit is contained in:
@@ -63,8 +63,8 @@ export default function Search({
|
||||
|
||||
const handleSearchHistoryItem = (item: any) => {
|
||||
const url =
|
||||
providers.find((provider: any) => provider.prefix === item.option.prefix)?.url ??
|
||||
'https://www.google.com/search?q=';
|
||||
providers.find((provider: Provider) => provider.prefix === item.option.prefix)
|
||||
?.url ?? 'https://www.google.com/search?q=';
|
||||
open(`${url}${item.option.searchTerm}`, '_self');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user