diff --git a/react/features/base/toolbox/components/AbstractToolboxItem.js b/react/features/base/toolbox/components/AbstractToolboxItem.js index 08cca5f2c..3e251728a 100644 --- a/react/features/base/toolbox/components/AbstractToolboxItem.js +++ b/react/features/base/toolbox/components/AbstractToolboxItem.js @@ -122,9 +122,9 @@ export default class AbstractToolboxItem
extends Component
{ * provided then it will be translated using it. * * @protected - * @returns {string} + * @returns {?string} */ - get _label() { + get label(): ?string { return this._maybeTranslateAttribute(this.props.label); } @@ -133,9 +133,9 @@ export default class AbstractToolboxItem
extends Component
{
* provided then it will be translated using it.
*
* @protected
- * @returns {string}
+ * @returns {?string}
*/
- get _tooltip() {
+ get tooltip(): ?string {
return this._maybeTranslateAttribute(this.props.tooltip);
}
diff --git a/react/features/base/toolbox/components/ToolboxItem.web.js b/react/features/base/toolbox/components/ToolboxItem.web.js
index ac3d6067a..25b7c3ab8 100644
--- a/react/features/base/toolbox/components/ToolboxItem.web.js
+++ b/react/features/base/toolbox/components/ToolboxItem.web.js
@@ -10,9 +10,6 @@ import type { Props } from './AbstractToolboxItem';
* Web implementation of {@code AbstractToolboxItem}.
*/
export default class ToolboxItem extends AbstractToolboxItem