feat(recording/native): added new Button component
This commit is contained in:
parent
a2c3bdf05f
commit
f0ba37e605
|
@ -0,0 +1 @@
|
||||||
|
export * from './native';
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './web';
|
|
@ -0,0 +1,2 @@
|
||||||
|
// @ts-ignore
|
||||||
|
export * from './_';
|
|
@ -0,0 +1 @@
|
||||||
|
export { default as Button } from './Button';
|
|
@ -0,0 +1 @@
|
||||||
|
export { default as Button } from './Button';
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './components';
|
|
@ -1,5 +1,3 @@
|
||||||
// @flow
|
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -12,7 +10,6 @@ import {
|
||||||
} from '../../../base/dialog';
|
} from '../../../base/dialog';
|
||||||
import { translate } from '../../../base/i18n';
|
import { translate } from '../../../base/i18n';
|
||||||
import {
|
import {
|
||||||
Button,
|
|
||||||
Container,
|
Container,
|
||||||
Image,
|
Image,
|
||||||
LoadingIndicator,
|
LoadingIndicator,
|
||||||
|
@ -21,6 +18,8 @@ import {
|
||||||
} from '../../../base/react';
|
} from '../../../base/react';
|
||||||
import { connect } from '../../../base/redux';
|
import { connect } from '../../../base/redux';
|
||||||
import { StyleType } from '../../../base/styles';
|
import { StyleType } from '../../../base/styles';
|
||||||
|
import { Button } from '../../../base/ui';
|
||||||
|
import { BUTTON_TYPES } from '../../../base/ui/constants';
|
||||||
import { authorizeDropbox, updateDropboxToken } from '../../../dropbox';
|
import { authorizeDropbox, updateDropboxToken } from '../../../dropbox';
|
||||||
import { isVpaasMeeting } from '../../../jaas/functions';
|
import { isVpaasMeeting } from '../../../jaas/functions';
|
||||||
import { RECORDING_TYPES } from '../../constants';
|
import { RECORDING_TYPES } from '../../constants';
|
||||||
|
@ -435,10 +434,9 @@ class StartRecordingDialogContent extends Component<Props> {
|
||||||
switchContent = (
|
switchContent = (
|
||||||
<Container className = 'recording-switch'>
|
<Container className = 'recording-switch'>
|
||||||
<Button
|
<Button
|
||||||
onValueChange = { this._onSignOut }
|
label = { 'recording.signOut' }
|
||||||
style = { styles.signButton }>
|
onPress = { this._onSignOut }
|
||||||
{ t('recording.signOut') }
|
type = { BUTTON_TYPES.SECONDARY } />
|
||||||
</Button>
|
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -446,10 +444,9 @@ class StartRecordingDialogContent extends Component<Props> {
|
||||||
switchContent = (
|
switchContent = (
|
||||||
<Container className = 'recording-switch'>
|
<Container className = 'recording-switch'>
|
||||||
<Button
|
<Button
|
||||||
onValueChange = { this._onSignIn }
|
label = { 'recording.signIn' }
|
||||||
style = { styles.signButton }>
|
onPress = { this._onSignIn }
|
||||||
{ t('recording.signIn') }
|
type = { BUTTON_TYPES.PRIMARY } />
|
||||||
</Button>
|
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,14 +146,6 @@ ColorSchemeRegistry.register('StartRecordingDialogContent', {
|
||||||
color: BaseTheme.palette.text01
|
color: BaseTheme.palette.text01
|
||||||
},
|
},
|
||||||
|
|
||||||
signButton: {
|
|
||||||
backgroundColor: BaseTheme.palette.screen01Header,
|
|
||||||
color: BaseTheme.palette.ui12,
|
|
||||||
fontSize: 16,
|
|
||||||
borderRadius: BaseTheme.shape.borderRadius,
|
|
||||||
padding: BoxModel.padding * 0.5
|
|
||||||
},
|
|
||||||
|
|
||||||
switch: {
|
switch: {
|
||||||
color: BaseTheme.palette.ui12
|
color: BaseTheme.palette.ui12
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue