aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/search-box.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/search-box.js')
-rw-r--r--web/src/search-box.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/src/search-box.js b/web/src/search-box.js
index ba2ed5d..b25769f 100644
--- a/web/src/search-box.js
+++ b/web/src/search-box.js
@@ -13,13 +13,13 @@
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
-import { html } from "../lib/htm/preact.js"
+import {html} from "../lib/htm/preact.js"
-export const SearchBox = ({ onKeyUp, placeholder = 'Find stickers' }) => {
+export const SearchBox = ({onInput, onKeyUp, value, placeholder = 'Find stickers'}) => {
const component = html`
<div class="search-box">
- <input type="text" placeholder=${placeholder} onKeyUp=${onKeyUp} />
- <span class="icon icon-search" />
+ <input type="text" placeholder=${placeholder} value=${value} onInput=${onInput} onKeyUp=${onKeyUp}/>
+ <span class="icon icon-search"/>
</div>
`
return component
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage