Skip to content

Commit

Permalink
Fix lint errors (#7241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Feb 21, 2024
1 parent 8752069 commit 7d4f423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ export const ConsultationUpdatesTab = (props: ConsultationTabProps) => {
isTab2Active={showEvents}
/>
{showEvents ? (
<EventsList consultation={props.consultationData} />
<EventsList />
) : (
<DailyRoundsList consultation={props.consultationData} />
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 (
<PaginatedList route={routes.getEvents} pathParams={{ consultationId }}>
{() => (
Expand Down

0 comments on commit 7d4f423

Please sign in to comment.