mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(welcome/native): settings updates (#11830)
feat(settings/native): feature updates
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/* eslint-disable lines-around-comment */
|
||||
// @ts-ignore
|
||||
import { translate } from '../../../../base/i18n';
|
||||
// @ts-ignore
|
||||
import { IconSettings } from '../../../../base/icons';
|
||||
// @ts-ignore
|
||||
import { AbstractButton, type AbstractButtonProps } from '../../../../base/toolbox/components';
|
||||
// @ts-ignore
|
||||
import { navigate }
|
||||
// @ts-ignore
|
||||
from '../../../../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
|
||||
// @ts-ignore
|
||||
import { screen } from '../../../../mobile/navigation/routes';
|
||||
|
||||
/**
|
||||
* Implements an {@link AbstractButton} to open the carmode.
|
||||
*/
|
||||
class SettingsButton extends AbstractButton<AbstractButtonProps, any, any> {
|
||||
accessibilityLabel = 'toolbar.accessibilityLabel.Settings';
|
||||
icon = IconSettings;
|
||||
label = 'settings.buttonLabel';
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button, and opens the carmode mode.
|
||||
*
|
||||
* @private
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
return navigate(screen.settings.main);
|
||||
}
|
||||
}
|
||||
|
||||
export default translate(SettingsButton);
|
||||
Reference in New Issue
Block a user