aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/SearchBox.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-11-06 03:30:40 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commit7b14a8f3faf7672f0aefbf93d5c37f62a169b535 (patch)
treeb027f687d286316afd493c3cf3cbbbc7aedd7396 /vnext/src/ui/SearchBox.js
parent00ff146fb45b64aa3a4278c05e4a4c476152e2b4 (diff)
Cleanup ESLint warnings
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);