Skip to content

Commit

Permalink
hide no consent record badges
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jul 23, 2024
1 parent 629ae0f commit ceef262
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export const PatientManager = () => {
</span>
</div>
<div className="flex flex-col items-start gap-4 md:flex-row">
<div className="bg-secondary-50 h-20 w-full min-w-20 rounded-lg border border-secondary-300 md:w-20">
<div className="h-20 w-full min-w-20 rounded-lg border border-secondary-300 bg-secondary-50 md:w-20">
{patient?.last_consultation?.current_bed &&
patient?.last_consultation?.discharge_date === null ? (
<div className="tooltip flex h-full flex-col items-center justify-center">
Expand Down Expand Up @@ -707,7 +707,7 @@ export const PatientManager = () => {
</span>
</span>
)}
{!!patient.last_consultation?.has_consents.length || (
{/* {!!patient.last_consultation?.has_consents.length || (
<span className="relative inline-flex">
<Chip
size="small"
Expand All @@ -720,7 +720,7 @@ export const PatientManager = () => {
<span className="relative inline-flex h-3 w-3 rounded-full bg-red-600"></span>
</span>
</span>
)}
)} */}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Patient/PatientConsentRecords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default function PatientConsentRecords(props: {
<div className="mt-2 text-sm text-red-500">{fileUpload.error}</div>
</div>
<div className="flex-1">
{consentRecords?.filter(
{/* {consentRecords?.filter(
(r) =>
r.files?.filter(
(f) =>
Expand All @@ -249,7 +249,7 @@ export default function PatientConsentRecords(props: {
!consentRecords && (
<div className="skeleton-animate-alpha h-32 rounded-lg" />
)
)}
)} */}
<div className="flex flex-col gap-4">
{consentRecords?.map((record, index) => (
<PatientConsentRecordBlockGroup
Expand Down

0 comments on commit ceef262

Please sign in to comment.