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.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/vnext/src/ui/SearchBox.js b/vnext/src/ui/SearchBox.js
index e6085fdc..636967b1 100644
--- a/vnext/src/ui/SearchBox.js
+++ b/vnext/src/ui/SearchBox.js
@@ -1,19 +1,19 @@
import { useForm } from 'react-hook-form';
/**
- * @typedef {Object} SearchBoxPropsFields
- * @property {function} onSearch
+ * @typedef {object} SearchBoxPropsFields
+ * @property {Function} onSearch
*/
/**
-* @typedef {SearchBoxPropsFields} SearchBoxProps
-*/
+ * @typedef {SearchBoxPropsFields} SearchBoxProps
+ */
/**
* @param {SearchBoxProps} props
*/
function SearchBox({ onSearch }) {
- const { register, handleSubmit, formState: { errors }, } = useForm();
+ const { register, handleSubmit } = useForm();
/** @type { import('react-hook-form').SubmitHandler<import('react-hook-form').FieldValues> } */
let onSubmit = ( values ) => {
onSearch(values.search);