Advertisement
Eulis

other-accommodations.jsx

Sep 30th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. import React, {Component} from 'react';
  2. import './OtherAccommodations.css';
  3. import LeftAccomodation from '../LeftAccomodation/LeftAccommodation';
  4. import RightAccommodation from '../RightAccommodation/RightAccommodation';
  5.  
  6. class OtherAccommodations extends Component {
  7. state = {
  8. OtherAccommodations:[
  9. {
  10. title: 'Apenas casal?',
  11. description: 'Bungalow casal',
  12. image: require('./accommodation.png'),
  13. },
  14. {
  15. title: 'Vai passar uma temporada?',
  16. description:'casa na fazenda',
  17. image: require('./accommodation.png'),
  18. },
  19. ]
  20. }
  21.  
  22. render() {
  23. return (
  24. <section className="other-accommodations-section">
  25. <LeftAccomodation background={this.state.OtherAccommodations[0].image} title={this.state.OtherAccommodations[0].title} description={this.state.OtherAccommodations[0].description}/>
  26. <RightAccommodation background={this.state.OtherAccommodations[0].image} title={this.state.OtherAccommodations[1].title} description={this.state.OtherAccommodations[1].description}/>
  27. </section>
  28. );
  29. }
  30. }
  31.  
  32. export default OtherAccommodations;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement