Skip to content

Commit

Permalink
Merge branch 'develop' into fa-2-care-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar authored Feb 21, 2024
2 parents a49f40f + 7d4f423 commit d84a969
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 d84a969

Please sign in to comment.