Import PropTypes from prop-types

Prepare for React 16.
This commit is contained in:
Lyubo Marinov
2017-09-27 16:23:31 -05:00
parent 9834e8ac7b
commit 2e2129fa44
104 changed files with 510 additions and 417 deletions

View File

@@ -1,4 +1,5 @@
import Tabs from '@atlaskit/tabs';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
@@ -57,29 +58,29 @@ class DesktopPicker extends Component {
/**
* Used to request DesktopCapturerSources.
*/
dispatch: React.PropTypes.func,
dispatch: PropTypes.func,
/**
* The callback to be invoked when the component is closed or when
* a DesktopCapturerSource has been chosen.
*/
onSourceChoose: React.PropTypes.func,
onSourceChoose: PropTypes.func,
/**
* An object with options related to desktop sharing.
*/
options: React.PropTypes.object,
options: PropTypes.object,
/**
* An object with arrays of DesktopCapturerSources. The key should be
* the source type.
*/
sources: React.PropTypes.object,
sources: PropTypes.object,
/**
* Used to obtain translations.
*/
t: React.PropTypes.func
t: PropTypes.func
};
/**