mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-20 22:27:24 -04:00
Toast now defaults to app icon for avatar
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user