浏览代码

fix(tooltip): description prop deprecated, use content instead (#2806)

master
virtuacoplenny 7 年前
父节点
当前提交
41e1c3a2e2

+ 1
- 1
react/features/filmstrip/components/web/BaseIndicator.js 查看文件

89
         return (
89
         return (
90
             <div className = 'indicator-container'>
90
             <div className = 'indicator-container'>
91
                 <Tooltip
91
                 <Tooltip
92
-                    description = { t(tooltipKey) }
92
+                    content = { t(tooltipKey) }
93
                     position = { tooltipPosition }>
93
                     position = { tooltipPosition }>
94
                     <span
94
                     <span
95
                         className = { iconContainerClassName }
95
                         className = { iconContainerClassName }

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

55
                 onClick = { this.props.onClick }>
55
                 onClick = { this.props.onClick }>
56
                 { this.props.tooltip
56
                 { this.props.tooltip
57
                     ? <Tooltip
57
                     ? <Tooltip
58
-                        description = { this.props.tooltip }
58
+                        content = { this.props.tooltip }
59
                         position = { this.props.tooltipPosition }>
59
                         position = { this.props.tooltipPosition }>
60
                         { children }
60
                         { children }
61
                     </Tooltip>
61
                     </Tooltip>

+ 1
- 1
react/features/video-quality/components/VideoQualityLabel.web.js 查看文件

166
                 className = { classNames }
166
                 className = { classNames }
167
                 id = 'videoResolutionLabel'>
167
                 id = 'videoResolutionLabel'>
168
                 <Tooltip
168
                 <Tooltip
169
-                    description = { t(tooltipKey) }
169
+                    content = { t(tooltipKey) }
170
                     position = { 'left' }>
170
                     position = { 'left' }>
171
                     <div className = 'video-quality-label-status'>
171
                     <div className = 'video-quality-label-status'>
172
                         { labelContent }
172
                         { labelContent }

正在加载...
取消
保存