mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Toast now defaults to app icon for avatar
This commit is contained in:
parent
379d7eb07e
commit
efb8fb6c70
@ -10,6 +10,7 @@ import * as constants from '../../common/constants';
|
||||
import * as db from '../../common/database';
|
||||
import * as session from '../../account/session';
|
||||
import * as fetch from '../../account/fetch';
|
||||
import appIconSrc from '../images/logo.png';
|
||||
|
||||
const LOCALSTORAGE_KEY = 'insomnia::notifications::seen';
|
||||
|
||||
@ -174,7 +175,7 @@ class Toast extends React.PureComponent<Props, State> {
|
||||
'toast--show': visible,
|
||||
})}>
|
||||
<div className="toast__image">
|
||||
<GravatarImg email={notification.email || 'greg.schier@konghq.com'} size={100} />
|
||||
<GravatarImg email={notification.email} fallback={appIconSrc} size={100} />
|
||||
</div>
|
||||
<div className="toast__content">
|
||||
<p className="toast__message">{notification ? notification.message : 'Unknown'}</p>
|
||||
|
BIN
packages/insomnia-app/app/ui/images/logo.png
Normal file
BIN
packages/insomnia-app/app/ui/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 KiB |
Loading…
Reference in New Issue
Block a user