Skip to content

Commit 0f0258c

Browse files
authored
Add GlobeIcon for visit input suffix in SearchForm (#1844)
1 parent 86fcb67 commit 0f0258c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

special-pages/pages/new-tab/app/omnibar/components/SearchForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { h, Fragment } from 'preact';
22
import { useEffect, useId } from 'preact/hooks';
3-
import { SearchIcon } from '../../components/Icons.js';
3+
import { SearchIcon, GlobeIcon } from '../../components/Icons.js';
44
import { useTypedTranslationWith } from '../../types';
55
import styles from './SearchForm.module.css';
66
import { SuggestionsList } from './SuggestionsList.js';
@@ -68,7 +68,7 @@ export function SearchForm({ term, autoFocus, onChangeTerm, onOpenSuggestion, on
6868
return (
6969
<form class={styles.form} onBlur={handleBlur} onSubmit={handleSubmit}>
7070
<div class={styles.inputContainer} style={{ '--suffix-text-width': `${measureText(inputSuffixText)}px` }}>
71-
<SearchIcon inert />
71+
{inputSuffix?.kind === 'visit' ? <GlobeIcon inert /> : <SearchIcon inert />}
7272
<input
7373
ref={inputRef}
7474
type="text"

0 commit comments

Comments
 (0)