aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/SearchBox.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/SearchBox.js')
-rw-r--r--vnext/src/ui/SearchBox.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/vnext/src/ui/SearchBox.js b/vnext/src/ui/SearchBox.js
index dda97989..005739d8 100644
--- a/vnext/src/ui/SearchBox.js
+++ b/vnext/src/ui/SearchBox.js
@@ -14,10 +14,7 @@ import { useFormState } from 'react-use-form-state';
* @param {SearchBoxProps} props
*/
function SearchBox({ onSearch }) {
- /**
- * @type {(React.FormEvent<HTMLFormElement>)}
- */
- let onSubmit = (event) => {
+ let onSubmit = (/** @type React.FormEvent<HTMLFormElement> */ event) => {
event.preventDefault();
onSearch(formState.values.search);
};