Просмотр исходного кода

fix(device-selection): add proptypes shim for popup

AtlasKit is not fully compatible with React 16. One problem
is PropTypes will not be defined on the React object. So,
add the prop-types shim to the popup bundle.
efficient_tiling
Leonard Kim 8 лет назад
Родитель
Сommit
2becfd026b
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      react/features/device-selection/popup.js

+ 3
- 0
react/features/device-selection/popup.js Просмотреть файл

@@ -3,6 +3,9 @@
3 3
 import 'aui-css';
4 4
 import 'aui-experimental-css';
5 5
 
6
+// FIXME: remove once atlaskit work with React 16.
7
+import '../base/react/prop-types-polyfill.js';
8
+
6 9
 import DeviceSelectionPopup from './DeviceSelectionPopup';
7 10
 
8 11
 let deviceSelectionPopup;

Загрузка…
Отмена
Сохранить