From 11da46137e66b9e6a491fc3f3de909711aba6709 Mon Sep 17 00:00:00 2001
From: konavivekramakrishna
<101407963+konavivekramakrishna@users.noreply.github.com>
Date: Tue, 21 Nov 2023 17:10:45 +0530
Subject: [PATCH] Aligned buttons to right (#6573)
* aligned buttons to right
* fixed merge conflict
* added pading
---
src/Components/Facility/FacilityCard.tsx | 186 +++++++++++------------
1 file changed, 93 insertions(+), 93 deletions(-)
diff --git a/src/Components/Facility/FacilityCard.tsx b/src/Components/Facility/FacilityCard.tsx
index ab37ac20c96..e8e0dbef70f 100644
--- a/src/Components/Facility/FacilityCard.tsx
+++ b/src/Components/Facility/FacilityCard.tsx
@@ -157,109 +157,109 @@ export const FacilityCard = (props: { facility: any; userType: any }) => {
-
-
-
-
*/}
+
+
+
0.85
+ ? "button-danger-border bg-red-500"
+ : "button-primary-border bg-primary-100"
+ }`}
+ >
+
+ Live Patients / Total beds
+ {" "}
+ 0.85
+ ? "text-white"
+ : "text-primary-600"
+ )}
+ />{" "}
+ 0.85
- ? "button-danger-border bg-red-500"
- : "button-primary-border bg-primary-100"
+ ? "text-white"
+ : "text-gray-700"
}`}
>
-
- Live Patients / Total beds
- {" "}
- 0.85
- ? "text-white"
- : "text-primary-600"
- )}
- />{" "}
- 0.85
- ? "text-white"
- : "text-gray-700"
- }`}
- >
- Occupancy: {facility.patient_count} /{" "}
- {facility.bed_count}{" "}
- {" "}
-
-
- Notify: {facility.name}
-
- }
- onClose={() => setNotifyModalFor(undefined)}
+ Occupancy: {facility.patient_count} /{" "}
+ {facility.bed_count}{" "}
+ {" "}
+
+
+ Notify: {facility.name}
+
+ }
+ onClose={() => setNotifyModalFor(undefined)}
+ >
+
+
+
+
+ {userType !== "Staff" ? (
-
-
- {t("view_faciliy")}
-
-
- setNotifyModalFor(facility.id)}
>
-
- {t("view_patients")}
+
+ Notify
-
+ ) : (
+ <>>
+ )}
+
+
+
+ {t("view_faciliy")}
+
+
+
+
+ {t("view_patients")}
+
+ {/*
*/}