feature: a minimal v1 backend implemented for treatments feature.
This commit is contained in:
@@ -49,15 +49,15 @@ export function PastTreatmentsPanel({
|
||||
</div>
|
||||
<p className="text-xs text-text-secondary mt-1">Status: {t.status}</p>
|
||||
|
||||
{t.records.length > 0 && (
|
||||
{t.cases.length > 0 && (
|
||||
<ul className="mt-2 space-y-1.5 text-xs text-text-secondary">
|
||||
{t.records.map((r) => (
|
||||
<li key={r.id}>
|
||||
<span className="text-text-primary font-medium">Record: </span>
|
||||
<span className="capitalize">{r.treatmentType}</span>
|
||||
{t.cases.map((c) => (
|
||||
<li key={c.id}>
|
||||
<span className="text-text-primary font-medium">Case: </span>
|
||||
<span className="capitalize">{c.treatmentType}</span>
|
||||
{' | '}
|
||||
{r.teeth.length > 0 ? `Teeth ${[...r.teeth].sort().join(', ')}` : 'No teeth tagged'}
|
||||
{r.notes ? ` — ${r.notes}` : ''}
|
||||
{c.teeth.length > 0 ? `Teeth ${[...c.teeth].sort().join(', ')}` : 'No teeth tagged'}
|
||||
{c.notes ? ` — ${c.notes}` : ''}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user