Advertisement
vandasche

Untitled

Apr 9th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import data from './data/data';
  3. import { Card, Icon, Image } from 'semantic-ui-react';
  4.  
  5. export default class Datacard extends Component {
  6. render() {
  7. return (
  8. <div>
  9. <div>
  10. {data.Property.map((data) => {
  11. return (
  12. <Card>
  13. <Image
  14. src='https://react.semantic-ui.com/images/avatar/large/matthew.png'
  15. wrapped
  16. ui={false}
  17. />
  18. <Card.Content>
  19. <Card.Header>
  20. {data.price} / {data.typeRent}
  21. </Card.Header>
  22. <Card.Description>
  23. {data.bedroom} Bed, {data.bathroom} Baths
  24. </Card.Description>
  25. <Card.Meta>
  26. {data.city}, {data.address}
  27. </Card.Meta>
  28. </Card.Content>
  29. </Card>
  30. );
  31. })}
  32. </div>
  33. </div>
  34. );
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement