You can't just use React classes as normal static classes :(
This commit is contained in:
parent
e1efb165fd
commit
c5e33352b0
5 changed files with 28 additions and 29 deletions
|
@ -23,8 +23,7 @@ var TextForEvent = require("../../../../src/TextForEvent");
|
|||
var extend = require("../../../../src/extend");
|
||||
var dis = require("../../../../src/dispatcher");
|
||||
|
||||
var ComponentBroker = require("../../../../src/ComponentBroker");
|
||||
var MemberAvatar = ComponentBroker.get("atoms/MemberAvatar");
|
||||
var Avatar = require("../../../../src/Avatar");
|
||||
|
||||
|
||||
var NotifierView = {
|
||||
|
@ -60,7 +59,9 @@ var NotifierView = {
|
|||
if (ev.getContent().body) msg = ev.getContent().body;
|
||||
}
|
||||
|
||||
var avatarUrlrl = MemberAvatar.avatarUrlForMember(ev.sender);
|
||||
var avatarUrl = Avatar.avatarUrlForMember(
|
||||
ev.sender, 40, 40, 'crop'
|
||||
);
|
||||
|
||||
var notification = new global.Notification(
|
||||
title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue