mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-25 16:19:20 -04:00
Toast now defaults to app icon for avatar
This commit is contained in:
1 parent
379d7eb07e
commit
efb8fb6c70
2 files changed
+2
-1
No files matched your search
@@ -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>
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 145 KiB |
Reference in new issue
Block a user