mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-02-13 09:20:17 +00:00
feat(recording/LiveStream): native ui updates
This commit is contained in:
committed by
Calinteodor
parent
45b7f53294
commit
d9749f3da6
@@ -1,9 +1,11 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import { Image, Text, TouchableOpacity } from 'react-native';
|
||||
import { Image, TouchableOpacity } from 'react-native';
|
||||
|
||||
import { translate } from '../../base/i18n';
|
||||
import Button from '../../base/ui/components/native/Button';
|
||||
import { BUTTON_TYPES } from '../../base/ui/constants.native';
|
||||
|
||||
import AbstractGoogleSignInButton from './AbstractGoogleSignInButton';
|
||||
import styles from './styles';
|
||||
@@ -33,17 +35,16 @@ class GoogleSignInButton extends AbstractGoogleSignInButton {
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const { onClick, signedIn, t } = this.props;
|
||||
const { onClick, signedIn } = this.props;
|
||||
|
||||
if (signedIn) {
|
||||
return (
|
||||
<TouchableOpacity
|
||||
onPress = { onClick }
|
||||
style = { styles.signOutButton } >
|
||||
<Text style = { styles.signOutButtonText }>
|
||||
{ t('liveStreaming.signOut') }
|
||||
</Text>
|
||||
</TouchableOpacity>
|
||||
<Button
|
||||
accessibilityLabel = 'liveStreaming.signOut'
|
||||
labelKey = 'liveStreaming.signOut'
|
||||
onClick = { onClick }
|
||||
style = { styles.signOutButton }
|
||||
type = { BUTTON_TYPES.SECONDARY } />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user