From 99a729932ae95185495bff7c832123ef9122afea Mon Sep 17 00:00:00 2001 From: Shivank Kacker Date: Wed, 5 Jun 2024 09:20:51 +0530 Subject: [PATCH 1/5] Updated ABHA popup UI --- src/Components/ABDM/ABHAProfileModal.tsx | 101 ++++++++--------------- 1 file changed, 36 insertions(+), 65 deletions(-) diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index be991bb8f55..cbb3db5a8c2 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -71,75 +71,46 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => {
- <> -
-
- {abha?.name ? ( - {abha?.name} - ) : ( - <> - {abha?.first_name} - {abha?.middle_name} - {abha?.last_name} - - )} -
- {abha?.abha_number} - {abha?.health_id && ( -
- {abha.health_id.split("@")[0]} - {/* @ - {abha.health_id.split("@")[1] || "care"} */} + +
+ {[ + { + label: "Name", + value: + abha?.name || + `${abha?.first_name} ${abha?.middle_name} ${abha?.last_name}`, + }, + { label: "DOB", value: abha?.date_of_birth }, + { label: "Gender", value: abha?.gender }, + { label: "ABHA Number", value: abha?.abha_number }, + { label: "ABHA ID", value: abha?.health_id?.split("@")[0] }, + { label: "Email", value: abha?.email }, + ].map((item, index) => + item.value ? ( +
+
{item.label}
+
{item.value}
- )} -
- {abha?.gender && ( -

- Gender: - - {abha?.gender} - -

- )} - {abha?.date_of_birth && ( -

- DOB: - - {abha?.date_of_birth} - -

- )} - {abha?.email && ( -

- Email: - - {abha?.email} - -

- )} -
-
- - <> - - + ) : null, + )} +
-
+
{abha?.created_date && (
Created On: From 8eed03714b01a37cafb4488bd87e57fbd9eb9358 Mon Sep 17 00:00:00 2001 From: Shivank Kacker Date: Fri, 7 Jun 2024 08:25:34 +0530 Subject: [PATCH 2/5] made responsive --- src/Components/ABDM/ABHAProfileModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index cbb3db5a8c2..435379be5a5 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -71,7 +71,7 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => {
Date: Tue, 11 Jun 2024 17:46:53 +0530 Subject: [PATCH 3/5] popup --- src/Components/ABDM/ABHAProfileModal.tsx | 28 +++++++++++++----------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index 435379be5a5..39e59b09acb 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -73,19 +73,21 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => { id="section-to-print" className="print flex flex-col gap-4 border-black sm:flex-row print:w-full print:border" > - +
+ +
{[ { From e1635350b10308c45e0ac229eff44879e0cf2807 Mon Sep 17 00:00:00 2001 From: Shivank Kacker Date: Sat, 15 Jun 2024 02:30:51 +0530 Subject: [PATCH 4/5] fixed qr --- src/Components/ABDM/ABHAProfileModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index 39e59b09acb..6077823d5a0 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -73,9 +73,9 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => { id="section-to-print" className="print flex flex-col gap-4 border-black sm:flex-row print:w-full print:border" > -
+
Date: Tue, 2 Jul 2024 20:14:52 +0530 Subject: [PATCH 5/5] updates --- src/Components/ABDM/ABHAProfileModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Components/ABDM/ABHAProfileModal.tsx b/src/Components/ABDM/ABHAProfileModal.tsx index 6077823d5a0..7815165db7d 100644 --- a/src/Components/ABDM/ABHAProfileModal.tsx +++ b/src/Components/ABDM/ABHAProfileModal.tsx @@ -67,6 +67,8 @@ const ABHAProfileModal = ({ patientId, show, onClose, abha }: IProps) => { } show={show} onClose={onClose} + className="max-w-[500px]" + fixedWidth={false} >