onChange callback got removed in eslint cleanups

Triggered eslint:no-empty-function, this PR circumvents this by adding
a comment as part of the function body.
This commit is contained in:
Alex van Andel committed 2021-06-27 13:51:06 +00:00
1 parent c13e067f72
commit 383ec64a7f
1 file changed
+3
+3
View File
@@ -238,6 +238,9 @@ export default function Book(props: any): JSX.Element {
id="phone"
required
className="shadow-sm focus:ring-blue-500 focus:border-blue-500 block w-full sm:text-sm border-gray-300 rounded-md"
onChange={() => {
/* DO NOT REMOVE: Callback required by PhoneInput, comment added to satisfy eslint:no-empty-function */
}}
/>
</div>
</div>