Skip to content

Commit

Permalink
wrap badge instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Feb 17, 2025
1 parent 308fc4b commit b76e301
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/components/Patient/symptoms/SymptomTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,18 @@ export function SymptomTable({
{symptom.code.display}
</TableCell>
<TableCell>
<Badge
variant="outline"
className={`whitespace-nowrap ${
SYMPTOM_SEVERITY_STYLES[symptom.severity]
}`}
>
{symptom.severity ? t(symptom.severity) : "-"}
</Badge>
{symptom.severity ? (
<Badge
variant="outline"
className={`whitespace-nowrap ${
SYMPTOM_SEVERITY_STYLES[symptom.severity]
}`}
>
{t(symptom.severity)}
</Badge>
) : (
"-"
)}
</TableCell>
<TableCell>
<Badge
Expand Down

0 comments on commit b76e301

Please sign in to comment.