Guest User

Untitled

a guest
Nov 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. import React from 'react';
  2. import {Link} from 'react-router-dom';
  3. import BigScreenVideo from './BigScreenVideo';
  4.  
  5. class AddComments extends React.Component {
  6. render() {
  7. console.log('COMMENT DATA: ', this.props.commentData)
  8. const timeGiven = this.props.timestamp
  9. console.log('timeGiven: ', timeGiven)
  10. const timeDisplay = new Date(timeGiven)
  11. console.log('timeDisplay: ', timeDisplay)
  12. return (
  13. <div>
  14. <div className="video-list-container">
  15. <p id="video-container-heading">Up next</p>
  16.  
  17. {this.props.videoData.map((videoItem, index) => (
  18. <Link to={videoItem.id}>
  19. <BigScreenVideo
  20. key={videoItem.Id || index}
  21. getCommentData={this.props.getCommentData}
  22. image={videoItem.image}
  23. title={videoItem.title}
  24. channel={videoItem.channel}
  25. viewCount={videoItem.views}
  26. id={videoItem.id}
  27. />
  28. </Link>
  29. ))}
  30. </div>
  31. </div>
  32. )
  33. }
  34. }
  35. export default AddComments
Add Comment
Please, Sign In to add comment