Remove code
This commit is contained in:
parent
abf1c0fbac
commit
9a3319ba35
|
@ -41,9 +41,9 @@ const styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
certificatePicker: {
|
certificatePicker: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
marginTop: 40,
|
marginBottom: 32,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center'
|
justifyContent: 'flex-end'
|
||||||
},
|
},
|
||||||
chooseCertificateTitle: {
|
chooseCertificateTitle: {
|
||||||
fontSize: 15,
|
fontSize: 15,
|
||||||
|
@ -264,8 +264,8 @@ class NewServerView extends React.Component {
|
||||||
const { text } = this.state;
|
const { text } = this.state;
|
||||||
return (
|
return (
|
||||||
<FormContainer theme={theme}>
|
<FormContainer theme={theme}>
|
||||||
<Text style={[styles.title, { color: themes[theme].titleText }]}>{I18n.t('Join_your_workspace')}</Text>
|
|
||||||
<View style={isTablet && sharedStyles.tabletScreenContent}>
|
<View style={isTablet && sharedStyles.tabletScreenContent}>
|
||||||
|
<Text style={[styles.title, { color: themes[theme].titleText }]}>{I18n.t('Join_your_workspace')}</Text>
|
||||||
<TextInput
|
<TextInput
|
||||||
label='Enter workspace URL'
|
label='Enter workspace URL'
|
||||||
placeholder='Ex. your-company.rocket.chat'
|
placeholder='Ex. your-company.rocket.chat'
|
||||||
|
|
|
@ -11,9 +11,8 @@ import { appStart as appStartAction } from '../../actions';
|
||||||
import I18n from '../../i18n';
|
import I18n from '../../i18n';
|
||||||
import Button from '../../containers/Button';
|
import Button from '../../containers/Button';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
import { isIOS, isNotch, isTablet } from '../../utils/deviceInfo';
|
import { isTablet } from '../../utils/deviceInfo';
|
||||||
import EventEmitter from '../../utils/events';
|
import EventEmitter from '../../utils/events';
|
||||||
import { CustomIcon } from '../../lib/Icons';
|
|
||||||
import { themes } from '../../constants/colors';
|
import { themes } from '../../constants/colors';
|
||||||
import { withTheme } from '../../theme';
|
import { withTheme } from '../../theme';
|
||||||
import sharedStyles from '../Styles';
|
import sharedStyles from '../Styles';
|
||||||
|
@ -107,30 +106,6 @@ class OnboardingView extends React.Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderClose = () => {
|
|
||||||
const { theme } = this.props;
|
|
||||||
if (this.previousServer) {
|
|
||||||
let top = 15;
|
|
||||||
if (isIOS) {
|
|
||||||
top = isNotch ? 45 : 30;
|
|
||||||
}
|
|
||||||
return (
|
|
||||||
<TouchableOpacity
|
|
||||||
style={[styles.closeModal, { top }]}
|
|
||||||
onPress={this.close}
|
|
||||||
testID='onboarding-close'
|
|
||||||
>
|
|
||||||
<CustomIcon
|
|
||||||
name='cross'
|
|
||||||
size={30}
|
|
||||||
color={themes[theme].actionTintColor}
|
|
||||||
/>
|
|
||||||
</TouchableOpacity>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { theme } = this.props;
|
const { theme } = this.props;
|
||||||
return (
|
return (
|
||||||
|
@ -156,7 +131,6 @@ class OnboardingView extends React.Component {
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
{this.renderClose()}
|
|
||||||
</FormContainer>
|
</FormContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue