diff --git a/app.js b/app.js index fcb251a69a..64cc7aa251 100644 --- a/app.js +++ b/app.js @@ -1,11 +1,5 @@ /* application specific logic */ -// FIXME: remove once atlaskit work with React 16 -// It seems that @atlaskit/icon is importing PropTypes from React, but it -// happens through some glyph coffee script template. It could be that more -// things are broken there (not only the icon). -import './react/features/base/react/prop-types-polyfill.js'; - import 'jquery'; import 'jquery-contextmenu'; import 'jQuery-Impromptu'; diff --git a/flow-typed/npm/prop-types_v15.x.x.js b/flow-typed/npm/prop-types_v15.x.x.js deleted file mode 100644 index ba9478bfe0..0000000000 --- a/flow-typed/npm/prop-types_v15.x.x.js +++ /dev/null @@ -1,35 +0,0 @@ -// flow-typed signature: d9a983bb1ac458a256c31c139047bdbb -// flow-typed version: 927687984d/prop-types_v15.x.x/flow_>=v0.41.x - -type $npm$propTypes$ReactPropsCheckType = ( - props: any, - propName: string, - componentName: string, - href?: string) => ?Error; - -declare module 'prop-types' { - declare var array: React$PropType$Primitive>; - declare var bool: React$PropType$Primitive; - declare var func: React$PropType$Primitive; - declare var number: React$PropType$Primitive; - declare var object: React$PropType$Primitive; - declare var string: React$PropType$Primitive; - declare var symbol: React$PropType$Primitive; - declare var any: React$PropType$Primitive; - declare var arrayOf: React$PropType$ArrayOf; - declare var element: React$PropType$Primitive; /* TODO */ - declare var instanceOf: React$PropType$InstanceOf; - declare var node: React$PropType$Primitive; /* TODO */ - declare var objectOf: React$PropType$ObjectOf; - declare var oneOf: React$PropType$OneOf; - declare var oneOfType: React$PropType$OneOfType; - declare var shape: React$PropType$Shape; - - declare function checkPropTypes( - propTypes: $Subtype<{[_: $Keys]: $npm$propTypes$ReactPropsCheckType}>, - values: V, - location: string, - componentName: string, - getStack: ?(() => ?string) - ) : void; -} diff --git a/package.json b/package.json index 3363192842..32ae4422cd 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "moment": "2.19.4", "moment-duration-format": "2.2.2", "postis": "2.2.0", - "prop-types": "15.6.0", "react": "16.6.3", "react-dom": "16.6.3", "react-emoji-render": "0.4.6", diff --git a/react/features/base/dialog/components/web/StatelessDialog.js b/react/features/base/dialog/components/web/StatelessDialog.js index 1897b38dd7..0d49d26736 100644 --- a/react/features/base/dialog/components/web/StatelessDialog.js +++ b/react/features/base/dialog/components/web/StatelessDialog.js @@ -3,7 +3,6 @@ import Button, { ButtonGroup } from '@atlaskit/button'; import Modal, { ModalFooter } from '@atlaskit/modal-dialog'; import _ from 'lodash'; -import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { translate } from '../../../i18n'; diff --git a/react/features/base/react/prop-types-polyfill.js b/react/features/base/react/prop-types-polyfill.js deleted file mode 100644 index 24424cf507..0000000000 --- a/react/features/base/react/prop-types-polyfill.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; - -/* eslint-disable react/no-deprecated */ - -if (typeof React.PropTypes === 'undefined') { - React.PropTypes = PropTypes; -} - -/* eslint-enable react/no-deprecated */ diff --git a/react/features/settings/popup.js b/react/features/settings/popup.js index 19b365e888..f0eaf90acf 100644 --- a/react/features/settings/popup.js +++ b/react/features/settings/popup.js @@ -1,8 +1,5 @@ /* global JitsiMeetJS */ -// FIXME: remove once atlaskit work with React 16. -import '../base/react/prop-types-polyfill.js'; - import DeviceSelectionPopup from './DeviceSelectionPopup'; let deviceSelectionPopup; diff --git a/webpack.config.js b/webpack.config.js index 5e10279857..474e251655 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -125,10 +125,6 @@ module.exports = [ './react/features/always-on-top/index.js', 'dial_in_info_bundle': [ - - // atlaskit does not support React 16 prop-types - './react/features/base/react/prop-types-polyfill.js', - './react/features/invite/components/dial-in-info-page' ],