From 9449949ac3f03412044e659fa3e5660d2cf5713a Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Fri, 17 Sep 2021 12:42:28 -0300 Subject: [PATCH] minor tweaks and removed onboardingview --- app/utils/log/events.js | 7 +-- app/views/NewServerView/index.js | 3 +- app/views/OnboardingView/index.js | 70 ----------------------- app/views/OnboardingView/styles.js | 41 ------------- app/views/RoomsListView/ServerDropdown.js | 4 +- 5 files changed, 5 insertions(+), 120 deletions(-) delete mode 100644 app/views/OnboardingView/index.js delete mode 100644 app/views/OnboardingView/styles.js diff --git a/app/utils/log/events.js b/app/utils/log/events.js index c39ccc424..88c4f3073 100644 --- a/app/utils/log/events.js +++ b/app/utils/log/events.js @@ -1,9 +1,4 @@ export default { - // ONBOARDING VIEW - ONBOARD_JOIN_A_WORKSPACE: 'onboard_join_a_workspace', - ONBOARD_CREATE_NEW_WORKSPACE: 'onboard_create_new_workspace', - ONBOARD_CREATE_NEW_WORKSPACE_F: 'onboard_create_new_workspace_f', - // NEW SERVER VIEW NS_CONNECT_TO_WORKSPACE: 'ns_connect_to_workspace', NS_JOIN_OPEN_WORKSPACE: 'ns_join_open_workspace', @@ -78,6 +73,8 @@ export default { RL_GROUP_CHANNELS_BY_TYPE: 'rl_group_channels_by_type', RL_GROUP_CHANNELS_BY_FAVORITE: 'rl_group_channels_by_favorite', RL_GROUP_CHANNELS_BY_UNREAD: 'rl_group_channels_by_unread', + RL_CREATE_NEW_WORKSPACE: 'rl_create_new_workspace', + RL_CREATE_NEW_WORKSPACE_F: 'rl_create_new_workspace_f', // QUEUE LIST VIEW QL_GO_ROOM: 'ql_go_room', diff --git a/app/views/NewServerView/index.js b/app/views/NewServerView/index.js index b7c2cb176..bf8cfff85 100644 --- a/app/views/NewServerView/index.js +++ b/app/views/NewServerView/index.js @@ -44,8 +44,7 @@ const styles = StyleSheet.create({ letterSpacing: 0, fontSize: 22, alignSelf: 'center', - marginBottom: 8, - lineHeight: 32 + marginBottom: 8 }, subtitle: { ...sharedStyles.textRegular, diff --git a/app/views/OnboardingView/index.js b/app/views/OnboardingView/index.js deleted file mode 100644 index 90726256c..000000000 --- a/app/views/OnboardingView/index.js +++ /dev/null @@ -1,70 +0,0 @@ -import React from 'react'; -import { View, Text, Image } from 'react-native'; -import PropTypes from 'prop-types'; -import Orientation from 'react-native-orientation-locker'; - -import I18n from '../../i18n'; -import Button from '../../containers/Button'; -import { isTablet } from '../../utils/deviceInfo'; -import { themes } from '../../constants/colors'; -import { withTheme } from '../../theme'; -import FormContainer, { FormContainerInner } from '../../containers/FormContainer'; -import { events, logEvent } from '../../utils/log'; -import styles from './styles'; - -class OnboardingView extends React.Component { - static navigationOptions = { - headerShown: false - }; - - static propTypes = { - navigation: PropTypes.object, - theme: PropTypes.string - }; - - constructor(props) { - super(props); - if (!isTablet) { - Orientation.lockToPortrait(); - } - } - - shouldComponentUpdate(nextProps) { - const { theme } = this.props; - if (theme !== nextProps.theme) { - return true; - } - return false; - } - - connectServer = () => { - logEvent(events.ONBOARD_JOIN_A_WORKSPACE); - const { navigation } = this.props; - navigation.navigate('NewServerView'); - }; - - render() { - const { theme } = this.props; - return ( - - - - {I18n.t('Onboarding_title')} - {I18n.t('Onboarding_subtitle')} - {I18n.t('Onboarding_description')} - -