feat: Adds ts rule noImplicitOverride and fix errors.

This commit is contained in:
damencho
2025-03-12 10:19:11 -05:00
committed by Дамян Минков
parent 480b6f7cdc
commit ea0f9e7934
336 changed files with 878 additions and 877 deletions

View File

@@ -29,18 +29,18 @@ interface IProps extends AbstractButtonProps {
* Implementation of a button for sharing desktop / windows.
*/
class ShareDesktopButton extends AbstractButton<IProps> {
accessibilityLabel = 'toolbar.accessibilityLabel.shareYourScreen';
toggledAccessibilityLabel = 'toolbar.accessibilityLabel.stopScreenSharing';
label = 'toolbar.startScreenSharing';
icon = IconScreenshare;
toggledLabel = 'toolbar.stopScreenSharing';
override accessibilityLabel = 'toolbar.accessibilityLabel.shareYourScreen';
override toggledAccessibilityLabel = 'toolbar.accessibilityLabel.stopScreenSharing';
override label = 'toolbar.startScreenSharing';
override icon = IconScreenshare;
override toggledLabel = 'toolbar.stopScreenSharing';
/**
* Retrieves tooltip dynamically.
*
* @returns {string}
*/
_getTooltip() {
override _getTooltip() {
const { _desktopSharingEnabled, _screensharing } = this.props;
if (_desktopSharingEnabled) {
@@ -61,7 +61,7 @@ class ShareDesktopButton extends AbstractButton<IProps> {
* @protected
* @returns {boolean}
*/
_isToggled() {
override _isToggled() {
return this.props._screensharing;
}
@@ -72,7 +72,7 @@ class ShareDesktopButton extends AbstractButton<IProps> {
* @protected
* @returns {boolean}
*/
_isDisabled() {
override _isDisabled() {
return !this.props._desktopSharingEnabled;
}
@@ -82,7 +82,7 @@ class ShareDesktopButton extends AbstractButton<IProps> {
* @private
* @returns {void}
*/
_handleClick() {
override _handleClick() {
const { dispatch, _screensharing } = this.props;
sendAnalytics(createToolbarEvent(