File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,20 @@ import CommentScreen from './CommentScreen';
3
3
import { connect } from 'react-redux' ;
4
4
import { bindActionCreators } from 'redux' ;
5
5
import * as commentsActionCreators from '../actions/commentsActionCreators' ;
6
+ import _ from 'lodash' ;
6
7
7
8
function select ( state ) {
8
9
// Which part of the Redux global state does our component want to receive as props?
9
10
return { data : state . $$commentsStore } ;
10
11
}
11
12
12
13
class RouterCommentScreen extends React . Component {
14
+ constructor ( props , context ) {
15
+ super ( props , context ) ;
16
+
17
+ _ . bindAll ( this , '_renderNotification' ) ;
18
+ }
19
+
13
20
static propTypes = {
14
21
dispatch : PropTypes . func . isRequired ,
15
22
data : PropTypes . object . isRequired ,
@@ -35,7 +42,7 @@ class RouterCommentScreen extends React.Component {
35
42
36
43
return (
37
44
< div >
38
- { :: this . _renderNotification ( ) }
45
+ { this . _renderNotification ( ) }
39
46
< CommentScreen { ...{ actions, data} } />
40
47
</ div >
41
48
) ;
You can’t perform that action at this time.
0 commit comments