From ebac33ebfbd571b0ae46b1056300cb71e490f19c Mon Sep 17 00:00:00 2001 From: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:46:18 +0530 Subject: [PATCH] Fix lint errors --- .../ConsultationDetails/ConsultationUpdatesTab.tsx | 2 +- .../Facility/ConsultationDetails/Events/EventsList.tsx | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx index 615d7b6ae49..949f2f77895 100644 --- a/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx +++ b/src/Components/Facility/ConsultationDetails/ConsultationUpdatesTab.tsx @@ -684,7 +684,7 @@ export const ConsultationUpdatesTab = (props: ConsultationTabProps) => { isTab2Active={showEvents} /> {showEvents ? ( - + ) : ( )} diff --git a/src/Components/Facility/ConsultationDetails/Events/EventsList.tsx b/src/Components/Facility/ConsultationDetails/Events/EventsList.tsx index 82a806dfc6b..36991333888 100644 --- a/src/Components/Facility/ConsultationDetails/Events/EventsList.tsx +++ b/src/Components/Facility/ConsultationDetails/Events/EventsList.tsx @@ -1,6 +1,5 @@ import { useTranslation } from "react-i18next"; import { useSlugs } from "../../../../Common/hooks/useSlug"; -import { ConsultationModel } from "../../models"; import PaginatedList from "../../../../CAREUI/misc/PaginatedList"; import routes from "../../../../Redux/api"; import { TimelineNode } from "../../../../CAREUI/display/Timeline"; @@ -9,15 +8,10 @@ import GenericEvent from "./GenericEvent"; import { EventGeneric } from "./types"; import { getEventIcon } from "./iconMap"; -interface Props { - consultation: ConsultationModel; -} - -export default function EventsList({ consultation }: Props) { +export default function EventsList() { const [consultationId] = useSlugs("consultation"); const { t } = useTranslation(); - return ( {() => (