MatchResultBasic.jsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // components
  2. import Spring from '@components/Spring';
  3. import ScrollContainer from '@components/ScrollContainer';
  4. import MatchResultBasicItem from '@components/MatchResultBasicItem';
  5. const data = [
  6. {team1: {id: 'manunited', score: 2}, team2: {id: 'chelsea', score: 1}, currentMinute: 45},
  7. {team1: {id: 'barcelona', score: 4}, team2: {id: 'realmadrid', score: 2}, currentMinute: 60},
  8. {team1: {id: 'liverpool', score: 0}, team2: {id: 'arsenal', score: 3}, currentMinute: 30},
  9. {team1: {id: 'bayern', score: 1}, team2: {id: 'bvb', score: 1}, currentMinute: 75},
  10. {team1: {id: 'juventus', score: 3}, team2: {id: 'acmilan', score: 0}, currentMinute: 15},
  11. {team1: {id: 'manunited', score: 2}, team2: {id: 'chelsea', score: 1}, currentMinute: 45},
  12. {team1: {id: 'barcelona', score: 4}, team2: {id: 'realmadrid', score: 2}, currentMinute: 60},
  13. {team1: {id: 'liverpool', score: 0}, team2: {id: 'arsenal', score: 3}, currentMinute: 30},
  14. {team1: {id: 'bayern', score: 1}, team2: {id: 'bvb', score: 1}, currentMinute: 75},
  15. {team1: {id: 'juventus', score: 3}, team2: {id: 'acmilan', score: 0}, currentMinute: 15}
  16. ]
  17. const MatchResultBasic = () => {
  18. return (
  19. <Spring className="card h-4">
  20. <ScrollContainer height={0}>
  21. <div className="track d-flex flex-column g-20" style={{padding: 20}}>
  22. {
  23. data.map((item, index) => (
  24. <MatchResultBasicItem key={index} data={item} index={index}/>
  25. ))
  26. }
  27. </div>
  28. </ScrollContainer>
  29. </Spring>
  30. )
  31. }
  32. export default MatchResultBasic