diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-22 08:31:10 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-22 08:47:00 -0500 |
commit | 4c92a1c1e35402730f74cf24a0c71729f4d0a676 (patch) | |
tree | a614a1bd7c10414182696e794a9e8dfc119e280e /web/react/components/posts_view.jsx | |
parent | 040bff2b9f384b88179f6ec1beb40d92102c9ba3 (diff) | |
download | chat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.tar.gz chat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.tar.bz2 chat-4c92a1c1e35402730f74cf24a0c71729f4d0a676.zip |
Updating some client deps + eslint
Diffstat (limited to 'web/react/components/posts_view.jsx')
-rw-r--r-- | web/react/components/posts_view.jsx | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index 19ab7d5aa..15810d9cf 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -252,7 +252,7 @@ export default class PostsView extends React.Component { key={currentPostDay.toDateString()} className='date-separator' > - <hr className='separator__hr' /> + <hr className='separator__hr'/> <div className='separator__text'> <FormattedDate value={currentPostDay} @@ -455,7 +455,7 @@ export default class PostsView extends React.Component { href='#' onClick={this.loadMorePostsBottom} > - <FormattedMessage id='posts_view.loadMore' /> + <FormattedMessage id='posts_view.loadMore'/> </a> ); } else { @@ -528,11 +528,11 @@ PostsView.propTypes = { function FloatingTimestamp({isScrolling, post}) { // only show on mobile if ($(window).width() > 768) { - return <noscript />; + return <noscript/>; } if (!post) { - return <noscript />; + return <noscript/>; } const dateString = ( @@ -557,10 +557,15 @@ function FloatingTimestamp({isScrolling, post}) { ); } +FloatingTimestamp.propTypes = { + isScrolling: React.PropTypes.bool.isRequired, + post: React.PropTypes.object +}; + function ScrollToBottomArrows({isScrolling, atBottom, onClick}) { // only show on mobile if ($(window).width() > 768) { - return <noscript />; + return <noscript/>; } let className = 'post-list__arrows'; @@ -573,7 +578,13 @@ function ScrollToBottomArrows({isScrolling, atBottom, onClick}) { className={className} onClick={onClick} > - <span dangerouslySetInnerHTML={{__html: Constants.SCROLL_BOTTOM_ICON}} /> + <span dangerouslySetInnerHTML={{__html: Constants.SCROLL_BOTTOM_ICON}}/> </div> ); } + +ScrollToBottomArrows.propTypes = { + isScrolling: React.PropTypes.bool.isRequired, + atBottom: React.PropTypes.bool.isRequired, + onClick: React.PropTypes.func.isRequired +}; |