Skip to content

Commit

Permalink
rm avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Feb 15, 2025
1 parent e114ebd commit bde6c68
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
12 changes: 7 additions & 5 deletions src/components/Patient/allergy/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,13 @@ export function AllergyList({
</TableCell>
<TableCell className="last:rounded-r-md">
<div className="flex items-center gap-2">
<Avatar
name={allergy.created_by.username}
className="w-4 h-4"
imageUrl={allergy.created_by.profile_picture_url}
/>
{!isPrintPreview && (
<Avatar
name={allergy.created_by.username}
className="w-4 h-4"
imageUrl={allergy.created_by.profile_picture_url}
/>
)}
<span className="text-sm">{formatName(allergy.created_by)}</span>
</div>
</TableCell>
Expand Down
12 changes: 7 additions & 5 deletions src/components/Patient/diagnosis/DiagnosisTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ export function DiagnosisTable({
</TableCell>
<TableCell className="last:rounded-r-md">
<div className="flex items-center gap-2">
<Avatar
name={diagnosis.created_by.username}
className="w-4 h-4"
imageUrl={diagnosis.created_by.profile_picture_url}
/>
{!isPrintPreview && (
<Avatar
name={diagnosis.created_by.username}
className="w-4 h-4"
imageUrl={diagnosis.created_by.profile_picture_url}
/>
)}
<span className="text-sm">{diagnosis.created_by.username}</span>
</div>
</TableCell>
Expand Down
12 changes: 7 additions & 5 deletions src/components/Patient/symptoms/SymptomTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ export function SymptomTable({
</TableCell>
<TableCell className="last:rounded-r-md">
<div className="flex items-center gap-2">
<Avatar
name={symptom.created_by.username}
className="w-4 h-4"
imageUrl={symptom.created_by.profile_picture_url}
/>
{!isPrintPreview && (
<Avatar
name={symptom.created_by.username}
className="w-4 h-4"
imageUrl={symptom.created_by.profile_picture_url}
/>
)}
<span className="text-sm">{symptom.created_by.username}</span>
</div>
</TableCell>
Expand Down

0 comments on commit bde6c68

Please sign in to comment.