mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Disable search (I accidentally went over my algolia index limit and they blocked searches)
This commit is contained in:
parent
1c49e29030
commit
d9769e356f
1 changed files with 12 additions and 8 deletions
|
|
@ -62,6 +62,8 @@ function Header() {
|
|||
const requestedAboutPage = useActionCreator(Actions.requestedAboutPage);
|
||||
const setInput = useFocusOnSlash();
|
||||
|
||||
const enableSearch = false;
|
||||
|
||||
return (
|
||||
<div id="search">
|
||||
<h1>
|
||||
|
|
@ -109,14 +111,16 @@ function Header() {
|
|||
-
|
||||
</button>
|
||||
*/}
|
||||
<input
|
||||
type="search"
|
||||
style={{ marginLeft: 10 }}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
value={searchQuery || ""}
|
||||
placeholder={"Search..."}
|
||||
ref={setInput}
|
||||
/>
|
||||
{enableSearch && (
|
||||
<input
|
||||
type="search"
|
||||
style={{ marginLeft: 10 }}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
value={searchQuery || ""}
|
||||
placeholder={"Search..."}
|
||||
ref={setInput}
|
||||
/>
|
||||
)}
|
||||
<button
|
||||
onClick={() => {
|
||||
requestRandomSkin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue