Skip to content

Commit

Permalink
fix: member modal gravatar src
Browse files Browse the repository at this point in the history
  • Loading branch information
aseerkt committed Aug 9, 2024
1 parent af03ac0 commit 5c3c6a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Binary file added web/public/gravatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions web/src/features/member/components/MemberModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { useGetMember, useHasPermission } from '../hooks'
import { ChangeMemberRole } from './ChangeMemberRole'
import { KickMember } from './KickMember'

function gravatarImage(hashHex: string) {
return `https://gravatar.com/avatar/${hashHex}?d=mp&f=y`
}

export const MemberModal = ({
groupId,
userId,
Expand Down Expand Up @@ -39,7 +35,7 @@ export const MemberModal = ({
<div className='flex items-center justify-center'>
<img
className='h-20 w-20 animate-pulse rounded-full bg-gray-200 ring-4'
src={gravatarImage(member.username)}
src='/gravatar.png'
alt='avatar'
/>
</div>
Expand Down

0 comments on commit 5c3c6a3

Please sign in to comment.