Skip to content

Commit db1b18e

Browse files
authored
Update datepicker.js
componentwillreceiveprops-has-been-renamed to UNSAFE_componentWillReceiveProps
1 parent 2a209bd commit db1b18e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class DatePicker extends Component {
5050
this.setModalVisible = this.setModalVisible.bind(this);
5151
}
5252

53-
componentWillReceiveProps(nextProps) {
53+
UNSAFE_componentWillReceiveProps(nextProps) {
5454
if (nextProps.date !== this.props.date) {
5555
this.setState({date: this.getDate(nextProps.date)});
5656
}

0 commit comments

Comments
 (0)