mirror of https://github.com/jitsi/jitsi-meet
Updates recording dialog. (#3953)
* Updates recording dialog. * Update config.js doc. * Adds comment and make a check more intuitive. * Changes of using enum for recording types.pull/3980/head jitsi-meet_3588
parent
f439ad2999
commit
12d0aef686
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 4.4 KiB |
@ -0,0 +1,44 @@ |
||||
/* @flow */ |
||||
|
||||
import React, { Component } from 'react'; |
||||
import { Text, TouchableOpacity } from 'react-native'; |
||||
|
||||
type Props = { |
||||
|
||||
/** |
||||
* React Elements to display within the component. |
||||
*/ |
||||
children: React$Node | Object, |
||||
|
||||
/** |
||||
* Handler called when the user presses the button. |
||||
*/ |
||||
onValueChange: Function, |
||||
|
||||
/** |
||||
* The component's external style |
||||
*/ |
||||
style: Object |
||||
}; |
||||
|
||||
/** |
||||
* Renders a button. |
||||
*/ |
||||
export default class ButtonImpl extends Component<Props> { |
||||
/** |
||||
* Implements React's {@link Component#render()}, renders the button. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
return ( |
||||
<TouchableOpacity |
||||
onPress = { this.props.onValueChange } > |
||||
<Text style = { this.props.style }> |
||||
{ this.props.children } |
||||
</Text> |
||||
</TouchableOpacity> |
||||
); |
||||
} |
||||
} |
@ -0,0 +1,41 @@ |
||||
// @flow
|
||||
|
||||
import React, { Component } from 'react'; |
||||
import { Image } from 'react-native'; |
||||
|
||||
/** |
||||
* The type of the React {@code Component} props of {@link Image}. |
||||
*/ |
||||
type Props = { |
||||
|
||||
/** |
||||
* The URL to be rendered as image. |
||||
*/ |
||||
src: string, |
||||
|
||||
/** |
||||
* The component's external style |
||||
*/ |
||||
style: Object |
||||
}; |
||||
|
||||
/** |
||||
* A component rendering aN IMAGE. |
||||
* |
||||
* @extends Component |
||||
*/ |
||||
export default class ImageImpl extends Component<Props> { |
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
return ( |
||||
<Image |
||||
source = { this.props.src } |
||||
style = { this.props.style } /> |
||||
); |
||||
} |
||||
} |
@ -0,0 +1,41 @@ |
||||
/* @flow */ |
||||
|
||||
import Button from '@atlaskit/button'; |
||||
import React, { Component } from 'react'; |
||||
|
||||
type Props = { |
||||
|
||||
/** |
||||
* React Elements to display within the component. |
||||
*/ |
||||
children: React$Node | Object, |
||||
|
||||
/** |
||||
* Handler called when the user presses the button. |
||||
*/ |
||||
onValueChange: Function |
||||
}; |
||||
|
||||
/** |
||||
* Renders a button. |
||||
*/ |
||||
export default class ButtonImpl extends Component<Props> { |
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
const { onValueChange } = this.props; |
||||
|
||||
return ( |
||||
<Button |
||||
appearance = 'primary' |
||||
onClick = { onValueChange } |
||||
type = 'button'> |
||||
{ this.props.children } |
||||
</Button> |
||||
); |
||||
} |
||||
} |
@ -0,0 +1,19 @@ |
||||
import React, { Component } from 'react'; |
||||
|
||||
/** |
||||
* Implements a React/Web {@link Component} for displaying image |
||||
* in order to facilitate cross-platform source code. |
||||
* |
||||
* @extends Component |
||||
*/ |
||||
export default class Image extends Component { |
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
return React.createElement('img', this.props); |
||||
} |
||||
} |
@ -1,3 +1,7 @@ |
||||
// XXX CSS is used on Web, JavaScript styles are use only for mobile. Export an
|
||||
// (empty) object so that styles[*] statements on Web don't trigger errors.
|
||||
export default {}; |
||||
|
||||
export const DROPBOX_LOGO = 'images/dropboxLogo_square.png'; |
||||
|
||||
export const JITSI_LOGO = 'images/jitsiLogo_square.png'; |
||||
|
Loading…
Reference in new issue