mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 15:47:47 +00:00
feat: Adds ts rule noImplicitOverride and fix errors.
This commit is contained in:
@@ -37,15 +37,15 @@ interface IProps extends AbstractButtonProps {
|
||||
* Implementation of a button for opening profile dialog.
|
||||
*/
|
||||
class ProfileButton extends AbstractButton<IProps> {
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.profile';
|
||||
icon = ProfileButtonAvatar;
|
||||
override accessibilityLabel = 'toolbar.accessibilityLabel.profile';
|
||||
override icon = ProfileButtonAvatar;
|
||||
|
||||
/**
|
||||
* Retrieves the label.
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
_getLabel() {
|
||||
override _getLabel() {
|
||||
const {
|
||||
_defaultLocalDisplayName,
|
||||
_localParticipant
|
||||
@@ -66,7 +66,7 @@ class ProfileButton extends AbstractButton<IProps> {
|
||||
*
|
||||
* @returns {string}
|
||||
*/
|
||||
_getTooltip() {
|
||||
override _getTooltip() {
|
||||
return this._getLabel();
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ class ProfileButton extends AbstractButton<IProps> {
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
override _handleClick() {
|
||||
const { dispatch, _unclickable } = this.props;
|
||||
|
||||
if (!_unclickable) {
|
||||
@@ -91,7 +91,7 @@ class ProfileButton extends AbstractButton<IProps> {
|
||||
* @protected
|
||||
* @returns {void}
|
||||
*/
|
||||
_isDisabled() {
|
||||
override _isDisabled() {
|
||||
return this.props._unclickable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user