Merge pull request #363 from lujakob/add-search-field-focus
feat: add search page field autofocus
This commit is contained in:
commit
688c5cf4f8
@ -56,6 +56,7 @@ const SearchPage = () => {
|
|||||||
placeholder={formatMessage(messages.SearchPlaceholder)}
|
placeholder={formatMessage(messages.SearchPlaceholder)}
|
||||||
value={search}
|
value={search}
|
||||||
onChange={e => setSearch(e.target.value)}
|
onChange={e => setSearch(e.target.value)}
|
||||||
|
autofocus
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{keyword && allUsers?.slice(0, 3).map(u => <ProfilePreview actions={<></>} className="card" pubkey={u.pubkey} />)}
|
{keyword && allUsers?.slice(0, 3).map(u => <ProfilePreview actions={<></>} className="card" pubkey={u.pubkey} />)}
|
||||||
|
Loading…
Reference in New Issue
Block a user