Skip to content

Commit

Permalink
hide antental filters
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed May 8, 2024
1 parent 290cfe4 commit 098e07c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ import RecordMeta from "../../CAREUI/display/RecordMeta";
import SearchInput from "../Form/SearchInput";
import SortDropdownMenu from "../Common/SortDropdown";
import SwitchTabs from "../Common/components/SwitchTabs";
import { formatPatientAge, parsePhoneNumber } from "../../Utils/utils.js";
import {
formatPatientAge,
isAntenatal,
parsePhoneNumber,
} from "../../Utils/utils.js";
import useFilters from "../../Common/hooks/useFilters";
import { useTranslation } from "react-i18next";
import Page from "../Common/components/Page.js";
Expand Down Expand Up @@ -597,6 +601,7 @@ export const PatientManager = () => {
)}
{patient.gender === 2 &&
patient.is_antenatal &&
isAntenatal(patient.last_menstruation_start_date) &&
patient.is_active && (
<Chip
size="small"
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ export default function PatientFilter(props: any) {
}
/>
</div>
<div className="w-full flex-none">
{/* <div className="w-full flex-none">
<FieldLabel className="text-sm">Is Antenatal</FieldLabel>
<SelectMenuV2
placeholder="Show all"
Expand All @@ -439,7 +439,7 @@ export default function PatientFilter(props: any) {
setFilterState({ ...filterState, is_antenatal: v })
}
/>
</div>
</div> */}
<div className="w-full flex-none">
<FieldLabel className="text-sm">Review Missed</FieldLabel>
<SelectMenuV2
Expand Down

0 comments on commit 098e07c

Please sign in to comment.