Skip to content

Commit 2ad702c

Browse files
author
Emmanouil Konstantinidis
committed
Support for Notifications' type "Commit"
1 parent 5364d3f commit 2ad702c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/components/notification.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
var React = require('react');
22
var remote = window.require('remote');
33
var shell = remote.require('shell');
4-
var _ = require('underscore');
54

6-
var AuthStore = require('../stores/auth');
75
var apiRequests = require('../utils/api-requests');
86

97
var Notification = React.createClass({
@@ -49,6 +47,8 @@ var Notification = React.createClass({
4947
typeIconClass = 'octicon octicon-issue-opened';
5048
} else if (this.props.notification.subject.type == 'PullRequest') {
5149
typeIconClass = 'octicon octicon-git-pull-request';
50+
} else if (this.props.notification.subject.type == 'Commit') {
51+
typeIconClass = 'octicon octicon-git-commit';
5252
} else {
5353
typeIconClass = 'octicon octicon-question';
5454
}

0 commit comments

Comments
 (0)