Replace gravatar image with local image (#433)

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
mrdrogdrog 2020-08-19 21:28:53 +02:00 committed by GitHub
parent 13b7854c65
commit fc2ba5fb07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"id": "mockUser",
"photo": "https://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=200&r=pg&d=mp",
"photo": "/avatar.png",
"name": "Test",
"status": "ok",
"provider": "internal"

BIN
public/avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View file

@ -14,10 +14,10 @@ const ConnectionIndicator: React.FC = () => {
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.Item disabled={true} className="d-flex align-items-center p-0">
<UserLine name="Philip Molares" photo="https://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=200&r=pg&d=mp" color="red" status={ActiveIndicatorStatus.INACTIVE}/>
<UserLine name="Philip Molares" photo="/avatar.png" color="red" status={ActiveIndicatorStatus.INACTIVE}/>
</Dropdown.Item>
<Dropdown.Item disabled={true} className="d-flex align-items-center p-0">
<UserLine name="Philip Molares" photo="https://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=200&r=pg&d=mp" color="blue" status={ActiveIndicatorStatus.ACTIVE}/>
<UserLine name="Philip Molares" photo="/avatar.png" color="blue" status={ActiveIndicatorStatus.ACTIVE}/>
</Dropdown.Item>
</Dropdown.Menu>
</Dropdown>

View file

@ -27,14 +27,14 @@ export const DocumentInfoButton: React.FC = () => {
mode={DocumentInfoLineWithTimeMode.CREATED}
time={ moment().subtract(11, 'days') }
userName={'Tilman'}
profileImageSrc={'https://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=200&r=pg&d=mp'}/>
profileImageSrc={'/avatar.png'}/>
</ListGroup.Item>
<ListGroup.Item>
<DocumentInfoTimeLine
mode={DocumentInfoLineWithTimeMode.EDITED}
time={ moment().subtract(3, 'minutes') }
userName={'Philip'}
profileImageSrc={'https://1.gravatar.com/avatar/767fc9c115a1b989744c755db47feb60?s=200&r=pg&d=mp'}/>
profileImageSrc={'/avatar.png'}/>
</ListGroup.Item>
<ListGroup.Item>
<DocumentInfoLine icon={'users'}>