From 383ec64a7fde53f0564e13d48a1619129094c919 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Sun, 27 Jun 2021 13:51:06 +0000 Subject: [PATCH] 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. --- pages/[user]/book.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/[user]/book.tsx b/pages/[user]/book.tsx index ccf2844c..38ca732a 100644 --- a/pages/[user]/book.tsx +++ b/pages/[user]/book.tsx @@ -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 */ + }} />