diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-04-29 08:40:06 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-04-29 08:40:06 -0400 |
commit | 1f4974dc02c786b65c802d4497fd736cca79d01c (patch) | |
tree | 1007e452c4a9345dee8aff113f28f235432bf323 /webapp/components/permalink_view.jsx | |
parent | 9961ccca7d39bdfabbafce423d3f7fe4b6ed2f29 (diff) | |
download | chat-1f4974dc02c786b65c802d4497fd736cca79d01c.tar.gz chat-1f4974dc02c786b65c802d4497fd736cca79d01c.tar.bz2 chat-1f4974dc02c786b65c802d4497fd736cca79d01c.zip |
General react performance improvements (#2796)
* General React performance improvements
* Cleaned up unused props/state in PermaLinkView and PostFocusView
Diffstat (limited to 'webapp/components/permalink_view.jsx')
-rw-r--r-- | webapp/components/permalink_view.jsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/webapp/components/permalink_view.jsx b/webapp/components/permalink_view.jsx index 07f826d57..c2019cb49 100644 --- a/webapp/components/permalink_view.jsx +++ b/webapp/components/permalink_view.jsx @@ -70,7 +70,7 @@ export default class PermalinkView extends React.Component { <ChannelHeader channelId={this.state.channelId} /> - <PostFocusView profiles={this.props.profiles}/> + <PostFocusView/> <div id='archive-link-home' > @@ -89,10 +89,6 @@ export default class PermalinkView extends React.Component { } } -PermalinkView.defaultProps = { -}; - PermalinkView.propTypes = { - params: React.PropTypes.object.isRequired, - profiles: React.PropTypes.object + params: React.PropTypes.object.isRequired }; |