From bd39722620ada5bf823375e257c0ee495ab7ff5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lo=CC=81pez?= Date: Thu, 23 Jun 2022 13:58:23 +0200 Subject: [PATCH] Update to React 18.2 --- package.json | 4 ++-- src/components/close-button/index.jsx | 4 +++- src/components/param-builder/input.jsx | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index dac0b5d..2ff7a72 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "is-my-json-valid": "^2.15.0", "oauth-1.0a": "^2.0.0", "qs": "^6.3.0", - "react": "^15.3.2", + "react": "^18.2.0", "react-click-outside": "github:tj/react-click-outside", - "react-dom": "^15.3.2", + "react-dom": "^18.2.0", "react-input-autosize": "^1.1.0", "react-json-tree": "^0.10.0", "react-redux": "^4.4.5", diff --git a/src/components/close-button/index.jsx b/src/components/close-button/index.jsx index 2b39a4c..4a328b9 100644 --- a/src/components/close-button/index.jsx +++ b/src/components/close-button/index.jsx @@ -1,4 +1,6 @@ -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; + import './style.css'; diff --git a/src/components/param-builder/input.jsx b/src/components/param-builder/input.jsx index e41af71..61e52a3 100644 --- a/src/components/param-builder/input.jsx +++ b/src/components/param-builder/input.jsx @@ -1,4 +1,5 @@ -import React, { PropTypes } from 'react'; +import React from 'react'; +import PropTypes from 'prop-types'; import TagsInput from 'react-tagsinput'; import 'react-tagsinput/react-tagsinput.css';