not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
600 B

6 years ago
6 years ago
  1. import React from 'react';
  2. import FontAwesome from 'react-fontawesome';
  3. export default (props) => {
  4. const name = this.props.name;
  5. const score = this.props.score;
  6. var word;
  7. if (this.props.word === ''){
  8. word = 'true'
  9. } else {
  10. word = 'false'
  11. }
  12. if (word === 'true') {
  13. return(
  14. <li>
  15. <div>{name}</div>
  16. <div>{score}</div>
  17. <FontAwesome name='check-circle' />
  18. </li>
  19. )
  20. } else {
  21. return (
  22. <li>
  23. <div>Name: {name}</div>
  24. <div>Score: {score}</div>
  25. <FontAwesome name='times-circle' />
  26. </li>
  27. )
  28. }
  29. }