-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathScore.js
More file actions
49 lines (32 loc) · 1.04 KB
/
Score.js
File metadata and controls
49 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import React from "react";
class Score extends React.Component {
constructor() {
super();
// this.mixQuestions = this.mixQuestions.bind(this);
}
render() {
// let emotion = === true ? "/static/img/basket_full.png": "/static/img/basket.png";
// if (this.props.score 0) {
// emotion = "/static/img/basket_full.png";
// } else if ( ) {
// greeting = "/static/img/basket.png";
// }
// return (
// <div className="nav">
// <img className="nav__logo" src="/static/img/logo.png" />
// <img className="nav__basket" onClick={() => this.props.openBasket()} src={basketFull}/>
// </div>
return (
<div className="score">
<div>
<h2>SCORE: {this.props.score}</h2>
{/* <img src=`{this.props.score}.jpg`/>
<img className="nav__logo" src="/img/0.jpg" />
<img src="${this.props.score}.jpg">
*/}
</div>
</div>
);
}
}
export default Score;