Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(toolbox): rename label / tooltip getters in ToolboxItem
Saúl Ibarra Corretgébce2438471c4
diff --git a/react/features/base/toolbox/components/AbstractToolboxItem.js b/react/features/base/toolbox/components/AbstractToolboxItem.jsindex 08cca5f2c7..3e251728ac 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<P : Props> extends Component<P> {* 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<P : Props> extends Component<P> {* 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.jsindex ac3d6067a5..25b7c3ab8d 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<Props> {- _label: string;- _tooltip: string;-/*** Handles rendering of the actual item. If the label is being shown, which* is controlled with the `showLabel` prop, the item is rendered for its@@ -40,7 +37,7 @@ export default class ToolboxItem extends AbstractToolboxItem<Props> {// $FlowFixMe<React.Fragment>{ this._renderIcon() }- { showLabel && this._label }+ { showLabel && this.label }</React.Fragment>);@@ -61,7 +58,7 @@ export default class ToolboxItem extends AbstractToolboxItem<Props> {= showLabel ? 'overflow-menu-item-icon' : 'toolbox-icon';const iconWrapper= React.createElement(elementType, { className }, icon);- const tooltip = this._tooltip;+ const tooltip = this.tooltip;const useTooltip = !showLabel && tooltip && tooltip.length > 0;if (useTooltip) {