Skip to content

Commit 9747fa8

Browse files
committed
better es6 import syntax
1 parent e76aa56 commit 9747fa8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/components/UsefulLinks.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
import React from 'react'
1+
import React, {PropTypes} from 'react'
22
import Reflux from 'reflux'
33

44
import LinksActions from '../actions/LinksActions'
55
import LinksStore from '../stores/LinksStore'
66
import {m} from '../lib/tools'
77

8-
const T = React.PropTypes;
9-
108
const UsefulLinks = React.createClass({
119
mixins: [Reflux.listenTo(LinksStore, 'linksUpdate')],
1210
propTypes: {
13-
title: T.string.isRequired
11+
title: PropTypes.string.isRequired
1412
},
1513
getInitialState() {
1614
return {
@@ -27,6 +25,7 @@ const UsefulLinks = React.createClass({
2725
if (!this.state.links.length) {
2826
return <span/>;
2927
}
28+
3029
const styles = {
3130
item: {
3231
paddingLeft: 30

0 commit comments

Comments
 (0)