mirror of https://github.com/jitsi/jitsi-meet
parent
579d08e27e
commit
8cd881945a
@ -1,3 +0,0 @@ |
||||
// @flow
|
||||
|
||||
export * from './native'; |
@ -1,39 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import type { Dispatch } from 'redux'; |
||||
|
||||
import { translate } from '../../../../base/i18n'; |
||||
import { IconInfo } from '../../../../base/icons'; |
||||
import { connect } from '../../../../base/redux'; |
||||
import { AbstractButton } from '../../../../base/toolbox'; |
||||
import type { AbstractButtonProps } from '../../../../base/toolbox'; |
||||
import { beginShareRoom } from '../../../../share-room'; |
||||
|
||||
type Props = AbstractButtonProps & { |
||||
|
||||
/** |
||||
* The Redux dispatch function. |
||||
*/ |
||||
dispatch: Dispatch<any> |
||||
}; |
||||
|
||||
/** |
||||
* Implements an {@link AbstractButton} to open the info dialog of the meeting. |
||||
*/ |
||||
class InfoDialogButton extends AbstractButton<Props, *> { |
||||
accessibilityLabel = 'info.accessibilityLabel'; |
||||
icon = IconInfo; |
||||
label = 'info.label'; |
||||
|
||||
/** |
||||
* Handles clicking / pressing the button, and opens the appropriate dialog. |
||||
* |
||||
* @private |
||||
* @returns {void} |
||||
*/ |
||||
_handleClick() { |
||||
this.props.dispatch(beginShareRoom()); |
||||
} |
||||
} |
||||
|
||||
export default translate(connect()(InfoDialogButton)); |
@ -1,3 +0,0 @@ |
||||
// @flow
|
||||
|
||||
export { default as InfoDialogButton } from './InfoDialogButton'; |
Loading…
Reference in new issue