improvement: treatment UX fully overhauled.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { isDetailTypeSelected } from '@/components/treatment/treatmentDetailRules';
|
||||
import { CaseSentLabel } from '@/components/ui/treatment/CaseSentLabel';
|
||||
import { labNotSentBadgeClass, labSentBadgeClass } from '@/components/treatment/treatmentStatusStyles';
|
||||
import type { LinkedOrganizationOption, PastTreatmentDetail } from '@/types/treatment';
|
||||
@@ -23,7 +24,7 @@ export function DetailLabSendBadge({
|
||||
}: DetailLabSendBadgeProps) {
|
||||
const t = useTranslations('treatment');
|
||||
|
||||
if (!labDependentCodes.has(detail.treatmentType)) {
|
||||
if (!isDetailTypeSelected(detail) || !labDependentCodes.has(detail.treatmentType)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user