Skip to content

Commit

Permalink
fix avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-hendrix committed Nov 12, 2023
1 parent 29cdf33 commit 97d9fc9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ interface Props {
}

const Avatar: React.FC<Props> = ({ user = null, size = '24px' }) => (
<div style={{ width: size, height: size }} className="relative rounded-full">
<Image src={user?.bucketImage || user?.image || '/avatar.svg'} alt="avatar.svg" fill />
<div className="avatar">
<div style={{ width: size, height: size }} className="relative rounded-full">
<Image src={user?.bucketImage || user?.image || '/avatar.svg'} alt="avatar.svg" fill />
</div>
</div>
)

Expand Down

0 comments on commit 97d9fc9

Please sign in to comment.