improvement: lab/clinic commiunication flow completely overhauled. no more shit.
This commit is contained in:
@@ -12,6 +12,7 @@ interface TreatmentPreviewCardProps {
|
||||
labDependentCodes: Set<string>;
|
||||
treatmentCatalog: TreatmentCatalogEntry[];
|
||||
orgs?: LinkedOrganizationOption[];
|
||||
embedded?: boolean;
|
||||
}
|
||||
|
||||
export function TreatmentPreviewCard({
|
||||
@@ -20,12 +21,13 @@ export function TreatmentPreviewCard({
|
||||
labDependentCodes,
|
||||
treatmentCatalog,
|
||||
orgs,
|
||||
embedded = false,
|
||||
}: TreatmentPreviewCardProps) {
|
||||
const t = useTranslations('treatment');
|
||||
|
||||
return (
|
||||
<div className="surface-card p-4 space-y-3">
|
||||
<h3 className="text-sm font-semibold text-text-primary">{heading}</h3>
|
||||
<div className={embedded ? 'space-y-3' : 'surface-card p-4 space-y-3'}>
|
||||
{heading ? <h3 className="text-sm font-semibold text-text-primary">{heading}</h3> : null}
|
||||
|
||||
{!treatment ? (
|
||||
<p className="text-sm text-text-muted">{t('selectAppointment')}</p>
|
||||
|
||||
Reference in New Issue
Block a user