improvement: new prosthesis type data structure implemented and finally working!
This commit is contained in:
@@ -16,6 +16,11 @@ export function TaskProsthesisGroupHeader({
|
||||
prosthesisCatalog,
|
||||
}: TaskProsthesisGroupHeaderProps) {
|
||||
const t = useTranslations('tasks');
|
||||
const tTreatment = useTranslations('treatment');
|
||||
const archLabels = {
|
||||
UA: tTreatment('selectedArchUpper'),
|
||||
LA: tTreatment('selectedArchLower'),
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-wrap items-center gap-2 px-3 py-1.5 bg-background-secondary/30 border-b border-border/40">
|
||||
@@ -29,7 +34,7 @@ export function TaskProsthesisGroupHeader({
|
||||
{group.prosthesisTypeLabel}
|
||||
</Badge>
|
||||
<span className="text-xs text-text-secondary">
|
||||
{t('teethLabel', { teeth: formatToothList(group.teeth) })}
|
||||
{t('teethLabel', { teeth: formatToothList(group.teeth, archLabels) })}
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user