From 1fd83f98c4bd75088af061dff902e5209350ef38 Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Fri, 27 Dec 2024 16:26:09 +0530 Subject: [PATCH 01/10] fix note card issue --- src/components/Facility/PatientNoteCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Facility/PatientNoteCard.tsx b/src/components/Facility/PatientNoteCard.tsx index 7896cbada4d..c1ea28276ff 100644 --- a/src/components/Facility/PatientNoteCard.tsx +++ b/src/components/Facility/PatientNoteCard.tsx @@ -207,7 +207,9 @@ const PatientNoteCard = ({ ) : ( -
{noteField}
+
+ {noteField} +
)} } From 70edafeedcaed5d4e9d8d2292ea4bcd6f68c9b7f Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Fri, 27 Dec 2024 16:37:50 +0530 Subject: [PATCH 02/10] fix current address issue --- src/components/Form/FormFields/TextAreaFormField.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Form/FormFields/TextAreaFormField.tsx b/src/components/Form/FormFields/TextAreaFormField.tsx index f26717810d4..c6b0071c9b2 100644 --- a/src/components/Form/FormFields/TextAreaFormField.tsx +++ b/src/components/Form/FormFields/TextAreaFormField.tsx @@ -44,6 +44,11 @@ const TextAreaFormField = forwardRef( )} onFocus={props.onFocus} onBlur={props.onBlur} + onKeyDown={(e) => { + if (e.key === "Enter") { + e.stopPropagation(); + } + }} /> ); From 0e72cb16787d6a13572594dd22a13732b9426376 Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Fri, 27 Dec 2024 18:58:07 +0530 Subject: [PATCH 03/10] fix shift enter not working --- src/components/Form/FormFields/TextAreaFormField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Form/FormFields/TextAreaFormField.tsx b/src/components/Form/FormFields/TextAreaFormField.tsx index c6b0071c9b2..00307d6ca03 100644 --- a/src/components/Form/FormFields/TextAreaFormField.tsx +++ b/src/components/Form/FormFields/TextAreaFormField.tsx @@ -45,7 +45,7 @@ const TextAreaFormField = forwardRef( onFocus={props.onFocus} onBlur={props.onBlur} onKeyDown={(e) => { - if (e.key === "Enter") { + if (e.key === "Enter" && !e.shiftKey && !e.metaKey) { e.stopPropagation(); } }} From 4e905b42b575ed297de17613d3d801f90748dc82 Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Sat, 28 Dec 2024 01:00:29 +0530 Subject: [PATCH 04/10] fix broken action button --- src/components/Patient/PatientHome.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Patient/PatientHome.tsx b/src/components/Patient/PatientHome.tsx index b50c73ece88..3abe3a50fab 100644 --- a/src/components/Patient/PatientHome.tsx +++ b/src/components/Patient/PatientHome.tsx @@ -7,7 +7,6 @@ import CareIcon from "@/CAREUI/icons/CareIcon"; import { Button } from "@/components/ui/button"; -import { AuthorizedButton } from "@/components/Common/AuthorizedButton"; import ConfirmDialog from "@/components/Common/ConfirmDialog"; import UserAutocomplete from "@/components/Common/UserAutocompleteFormField"; @@ -37,6 +36,7 @@ import { relativeDate, } from "../../Utils/utils"; import { Avatar } from "../Common/Avatar"; +import ButtonV2 from "../Common/ButtonV2"; import Loading from "../Common/Loading"; import Page from "../Common/Page"; import { SkillModel, UserBareMinimum } from "../Users/models"; @@ -523,7 +523,7 @@ export const PatientHome = (props: { {NonReadOnlyUsers(authUser.user_type) && (
- setOpenAssignVolunteerDialog(true)} disabled={false} @@ -536,12 +536,12 @@ export const PatientHome = (props: { ? t("update_volunteer") : t("assign_to_volunteer")} - +
)}
- - +
From 559b3e31f64950fbb042055d49377f3017761da8 Mon Sep 17 00:00:00 2001 From: AdityaJ2305 Date: Sat, 28 Dec 2024 12:28:22 +0530 Subject: [PATCH 05/10] browser default submit --- src/components/Common/Breadcrumbs.tsx | 1 + src/components/Form/Form.tsx | 5 ----- src/components/Form/FormFields/TextAreaFormField.tsx | 5 ----- 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/components/Common/Breadcrumbs.tsx b/src/components/Common/Breadcrumbs.tsx index f55edd4ccf6..3ccc5494f75 100644 --- a/src/components/Common/Breadcrumbs.tsx +++ b/src/components/Common/Breadcrumbs.tsx @@ -97,6 +97,7 @@ export default function Breadcrumbs({