Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BackgroundCells.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BackgroundCells extends React.Component {
this._teardownSelectable()
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.selectable && !this.props.selectable) this._selectable()

if (!nextProps.selectable && this.props.selectable)
Expand Down
2 changes: 1 addition & 1 deletion src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ class Calendar extends React.Component {
context: this.getContext(this.props),
}
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
this.setState({ context: this.getContext(nextProps) })
}

Expand Down
2 changes: 1 addition & 1 deletion src/DayColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class DayColumn extends React.Component {
this.clearTimeIndicatorInterval()
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (nextProps.selectable && !this.props.selectable) this._selectable()
if (!nextProps.selectable && this.props.selectable)
this._teardownSelectable()
Expand Down
2 changes: 1 addition & 1 deletion src/Month.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MonthView extends React.Component {
}
}

componentWillReceiveProps({ date }) {
UNSAFE_componentWillReceiveProps({ date }) {
this.setState({
needLimitMeasure: !dates.eq(date, this.props.date, 'month'),
})
Expand Down
4 changes: 2 additions & 2 deletions src/TimeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class TimeGrid extends Component {
this._scrollRatio = null
}

componentWillMount() {
UNSAFE_componentWillMount() {
this.calculateScroll()
}

Expand Down Expand Up @@ -73,7 +73,7 @@ export default class TimeGrid extends Component {
//this.checkOverflow()
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const { range, scrollToTime } = this.props
// When paginating, reset scroll
if (
Expand Down
2 changes: 1 addition & 1 deletion src/TimeGutter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class TimeGutter extends Component {
})
}

componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
const { min, max, timeslots, step } = nextProps
this.slotMetrics = this.slotMetrics.update({ min, max, timeslots, step })
}
Expand Down