Skip to content

Commit

Permalink
Removed code redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
noufalrahim committed Oct 24, 2024
1 parent a636843 commit 01903f1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 2 additions & 0 deletions src/Locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
"hi__record_not_fetched_title": "This record hasn't been fetched yet",
"hi__waiting_for_record": "Waiting for the Host HIP to send the record.",
"hide": "Hide",
"high": "High",
"home_facility": "Home Facility",
"hubs": "Hub Facilities",
"i_declare": "I hereby declare that:",
Expand Down Expand Up @@ -793,6 +794,7 @@
"log_report": "Log Report",
"login": "Login",
"longitude_invalid": "Longitude must be between -180 and 180",
"low": "Low",
"lsg": "Lsg",
"make_multiple_beds_label": "Do you want to make multiple beds?",
"manage_bed_presets": "Manage Presets of Bed",
Expand Down
50 changes: 24 additions & 26 deletions src/components/Patient/DailyRounds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -821,31 +821,6 @@ export const DailyRounds = (props: any) => {
]}
/>

<RangeAutocompleteFormField
{...field("ventilator_spo2")}
unit="%"
start={0}
end={100}
step={1}
thresholds={[
{
value: 0,
className: "text-danger-500",
label: "Low",
},
{
value: 90,
className: "text-primary-500",
label: "Normal",
},
{
value: 100,
className: "text-danger-500",
label: "High",
},
]}
/>

<SelectFormField
{...field("rhythm")}
placeholder={t("HEARTBEAT_RHYTHM__UNKNOWN")}
Expand Down Expand Up @@ -876,7 +851,30 @@ export const DailyRounds = (props: any) => {
/>
</>
)}

<RangeAutocompleteFormField
{...field("ventilator_spo2")}
unit="%"
start={0}
end={100}
step={1}
thresholds={[
{
value: 0,
className: "text-danger-500",
label: t("low"),
},
{
value: 90,
className: "text-primary-500",
label: t("normal"),
},
{
value: 100,
className: "text-danger-500",
label: t("high"),
},
]}
/>
{state.form.rounds_type === "COMMUNITY_NURSES_LOG" && (
<div className="md:col-span-2">
<hr className="my-4 md:col-span-2" />
Expand Down

0 comments on commit 01903f1

Please sign in to comment.