Skip to content

Commit 2eafd5a

Browse files
patelnavjquense
authored andcommitted
1 parent f583814 commit 2eafd5a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/Carousel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Carousel extends React.Component {
9999
this.waitForNext();
100100
}
101101

102-
componentWillReceiveProps(nextProps) {
102+
UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line
103103
const activeIndex = this.getActiveIndex();
104104

105105
if (

src/CarouselItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class CarouselItem extends React.Component {
3232
this.isUnmounted = false;
3333
}
3434

35-
componentWillReceiveProps(nextProps) {
35+
UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line
3636
if (this.props.active !== nextProps.active) {
3737
this.setState({ direction: null });
3838
}

src/Dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Dropdown extends React.Component {
132132
this.focusNextOnOpen();
133133
}
134134

135-
componentWillUpdate(nextProps) {
135+
UNSAFE_componentWillUpdate(nextProps) { // eslint-disable-line
136136
if (!nextProps.open && this.props.open) {
137137
this._focusInDropdown = contains(
138138
ReactDOM.findDOMNode(this.menu),

src/TabContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class TabContent extends React.Component {
9797
};
9898
}
9999

100-
componentWillReceiveProps(nextProps) {
100+
UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line
101101
if (!nextProps.animation && this.state.activeChild) {
102102
this.setState({ activeKey: null, activeChild: null });
103103
}

src/utils/deprecationWarning.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function deprecationWarning(oldname, newname, link) {
2525

2626
deprecationWarning.wrapper = (Component, ...args) =>
2727
class DeprecatedComponent extends Component {
28-
componentWillMount(...methodArgs) {
28+
UNSAFE_componentWillMount(...methodArgs) { // eslint-disable-line
2929
deprecationWarning(...args);
3030

31-
if (super.componentWillMount) {
32-
super.componentWillMount(...methodArgs);
31+
if (super.UNSAFE_componentWillMount) {
32+
super.UNSAFE_componentWillMount(...methodArgs);
3333
}
3434
}
3535
};

0 commit comments

Comments
 (0)