Commit ee5ac9e1 by FE

Merge branch '00-formal' into dev

parents 2ace24a7 7521d0ee
......@@ -14,13 +14,13 @@ class CourseItem extends Component {
this.startCountDown(time);
}
componentWillReceiveProps(nextProps) {
const { time: newTime } = nextProps
const { time: oldTime } = this.props;
if(oldTime != newTime) {
this.startCountDown(newTime);
}
}
// componentWillReceiveProps(nextProps) {
// const { time: newTime } = nextProps
// const { time: oldTime } = this.props;
// if(oldTime != newTime) {
// this.startCountDown(newTime);
// }
// }
startCountDown = (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