Commit ee5ac9e1 by FE

Merge branch '00-formal' into dev

parents 2ace24a7 7521d0ee
...@@ -14,13 +14,13 @@ class CourseItem extends Component { ...@@ -14,13 +14,13 @@ class CourseItem extends Component {
this.startCountDown(time); this.startCountDown(time);
} }
componentWillReceiveProps(nextProps) { // componentWillReceiveProps(nextProps) {
const { time: newTime } = nextProps // const { time: newTime } = nextProps
const { time: oldTime } = this.props; // const { time: oldTime } = this.props;
if(oldTime != newTime) { // if(oldTime != newTime) {
this.startCountDown(newTime); // this.startCountDown(newTime);
} // }
} // }
startCountDown = (time) => { startCountDown = (time) => {
if(time) { if(time) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment