Guest User

Untitled

a guest
Jan 9th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. constructor(props) {
  2. super(props);
  3. let opportsArray = [
  4. {
  5. imgSrc : '../../../Assets/images/opportList.png',
  6. text : 'bla'
  7. },
  8.  
  9. {
  10. imgSrc : '../../../Assets/images/opportExp.png',
  11. text : 'blabla'
  12. },
  13.  
  14. {
  15. imgSrc : '../../../Assets/images/opportTeam.png',
  16. text : 'blablabla'
  17. }
  18. ];
  19. this.state = {opports : opportsArray};
  20. }
  21.  
  22. class OpportTemplate extends Component {
  23. render() {
  24. return (
  25. <div className="col-sm">
  26. <div className="imgWrapper">
  27. <img src={this.props.children.imgSrc} alt="img" />
  28. </div>
  29.  
  30. <div className="textWrapper">
  31. {this.props.children.text}
  32. </div>
  33. </div>
  34. );
  35. }
  36. }
Add Comment
Please, Sign In to add comment