mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
feat: search button
This commit is contained in:
parent
4a41743943
commit
53e7d73427
@ -62,14 +62,13 @@ const Form: React.FC<{
|
|||||||
<Logo to="/" onClick={onLogoClick}>
|
<Logo to="/" onClick={onLogoClick}>
|
||||||
<LogoImage src="/logo.svg" />
|
<LogoImage src="/logo.svg" />
|
||||||
</Logo>
|
</Logo>
|
||||||
<form onSubmit={onSubmitQuery}>
|
<form onSubmit={onSubmitQuery} action="/s" role="search">
|
||||||
<InputView
|
<InputView
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
onBlur={onSubmitQuery}
|
|
||||||
value={inputValue}
|
value={inputValue}
|
||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
placeholder={t('placeholder')}
|
placeholder={t('placeholder')}
|
||||||
aria-label="search form"
|
aria-label="Search"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
{queryGiven && !suggested ? (
|
{queryGiven && !suggested ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user