Advertisement
joygabriel21

Card Component

Jan 21st, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. import React, {Component} from 'react';
  2. import Text from '../../atoms/Text';
  3. import TextGroup from '../../atoms/TextGroup'
  4. import './style.css';
  5.  
  6. export default class Card extends Component {
  7.  
  8. render() {
  9. return (
  10. <div className = 'CardItem'>
  11. <TextGroup>
  12. <Text content = {this.props.date} className = 'Subtitle bold'/>
  13. <hr />
  14. <div className = 'make-inline'>
  15. <Text content = {'#' + this.props.id} className = 'space5px bold'/>
  16. <Text content = {this.props.topic} className ='bold'/>
  17. </div>
  18. <div className = 'make-inline'>
  19. <Text content = {this.props.participants} className = 'space5px bold'/>
  20. <Text content = 'went'/>
  21. </div>
  22. <button className = 'view'>View</button>
  23. </TextGroup>
  24. </div>
  25. )
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement