diff --git a/src/ui/editRuleForm.js b/src/ui/editRuleForm.js index fcc1f63..64946c9 100644 --- a/src/ui/editRuleForm.js +++ b/src/ui/editRuleForm.js @@ -976,7 +976,7 @@ class EditRuleForm extends Component { //componentDidUpdate doesn't work - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.message === "SEND_EXPR_STMT_XML") return; if (nextProps.message === "CHANGE_GUI_ELEMENT") return; @@ -1601,7 +1601,7 @@ class CustomDropDown extends Component { ) } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { this.setState({ menuItems: nextProps.menuItems, onSelectFunction: nextProps.onSelectFunction, diff --git a/src/ui/ruleGenerationGUI/guiComponent.js b/src/ui/ruleGenerationGUI/guiComponent.js index cd4a81c..fe4d087 100644 --- a/src/ui/ruleGenerationGUI/guiComponent.js +++ b/src/ui/ruleGenerationGUI/guiComponent.js @@ -107,7 +107,7 @@ class GuiComponent extends Component { } //componentDidUpdate doesn't work - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { let hoverCheckbox = {element: false}; // recover texts: let texts = {}; @@ -1054,7 +1054,7 @@ class CustomDropDown extends Component { ) } - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { this.setState({ menuItemsText: nextProps.menuItemsText, menuItemsEvent: nextProps.menuItemsEvent, diff --git a/src/ui/ruleGenerationGUI/ruleGeneratorGui.js b/src/ui/ruleGenerationGUI/ruleGeneratorGui.js index cb139e4..77b04e8 100644 --- a/src/ui/ruleGenerationGUI/ruleGeneratorGui.js +++ b/src/ui/ruleGenerationGUI/ruleGeneratorGui.js @@ -64,7 +64,7 @@ class RuleGeneratorGui extends Component { } //componentDidUpdate doesn't work - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { if (this.ruleIndex !== -1) { let indices = nextProps.rules.map(d => d.index); let arrayIndex = indices.indexOf(this.ruleIndex); diff --git a/src/ui/ruleGenerationText/ruleGeneratorText.js b/src/ui/ruleGenerationText/ruleGeneratorText.js index e6a9e1a..4114b79 100644 --- a/src/ui/ruleGenerationText/ruleGeneratorText.js +++ b/src/ui/ruleGenerationText/ruleGeneratorText.js @@ -55,7 +55,7 @@ class RuleGeneratorText extends Component { } //componentDidUpdate doesn't work - componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { let changedArray = false; if (this.autoCompleteArray.length !== nextProps.autoCompleteArray.length) changedArray = true; else this.autoCompleteArray.forEach((a, i) => {