浏览代码

fix(toolbar): fix proptype warning

The implementation of ToolbarButtonWithDialog expects a
constructor function for now, not the object returned
from calling a constructor function.
j8
Leonard Kim 8 年前
父节点
当前提交
eae3bead87
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      react/features/toolbox/components/ToolbarButtonWithDialog.web.js

+ 1
- 1
react/features/toolbox/components/ToolbarButtonWithDialog.web.js 查看文件

@@ -48,7 +48,7 @@ class ToolbarButtonWithDialog extends Component {
48 48
         /**
49 49
          * The React Component to show within {@code InlineDialog}.
50 50
          */
51
-        content: PropTypes.object,
51
+        content: PropTypes.func,
52 52
 
53 53
         /**
54 54
          * From which side tooltips should display. Will be re-used for

正在加载...
取消
保存