From 0e214a77e11321debd5b57309779229b810d3c59 Mon Sep 17 00:00:00 2001 From: Foysal Ahamed Date: Tue, 6 Feb 2024 19:51:49 +0100 Subject: [PATCH] :broom: Cleanup according to PR review --- components/mod-event/EventList.tsx | 29 +++++++----------------- components/mod-event/useModEventList.tsx | 27 +++++++++++++++------- 2 files changed, 27 insertions(+), 29 deletions(-) diff --git a/components/mod-event/EventList.tsx b/components/mod-event/EventList.tsx index 49658c34..fd01eb9f 100644 --- a/components/mod-event/EventList.tsx +++ b/components/mod-event/EventList.tsx @@ -1,6 +1,7 @@ import { EventListState, FIRST_EVENT_TIMESTAMP, + formatDateForInput, ModEventListQueryOptions, useModEventList, } from './useModEventList' @@ -243,12 +244,6 @@ const EventFilterPanel = ({ checked={types.length === allTypes.length} onChange={() => toggleType('all')} className="h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600" - onKeyDown={(e) => { - if (e.key === 'Enter') { - e.preventDefault() // make sure we don't submit the form - e.currentTarget.click() // simulate a click on the input - } - }} />