diff options
| author | anderklander <anderklander@gmail.com> | 2018-03-26 12:31:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-03-26 14:22:11 +0200 |
| commit | 54bbf42830092536f577f28c1bd42418d302963f (patch) | |
| tree | 8bdf6b3a342d5fbfe361b7ec386bbc7e199b3097 | |
| parent | c3dde05d7b5d62818c9042f5ed8b7783bca090ca (diff) | |
| download | mullvadvpn-54bbf42830092536f577f28c1bd42418d302963f.tar.xz mullvadvpn-54bbf42830092536f577f28c1bd42418d302963f.zip | |
Cleaning unused stuff
| -rw-r--r-- | app/components/Login.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index 08b997703a..d5274a988b 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -31,7 +31,6 @@ type State = { animatedLoginButtonValue: Animated.Value, animation: ?Animated.CompositeAnimation, footerAnimationStyle: ?Animated.Style, - dropdownAnimationStyle: ?Animated.Style, loginButtonAnimationStyle: ?Animated.Style, }; @@ -287,14 +286,6 @@ export default class Login extends Component<LoginPropTypes, State> { }); } - _onDropdownLayout = (layout) => { - this.setState({dropdownHeight: layout.height}); - } - - // container element used for measuring the height of the accounts dropdown - _accountDropdownElement: ?React.Node; - _onAccountDropdownContainerRef = ref => this._accountDropdownElement = ref; - _onSelectAccountFromHistory = (accountToken) => { this.props.onAccountTokenChange(accountToken); this.props.onLogin(accountToken); @@ -312,8 +303,6 @@ export default class Login extends Component<LoginPropTypes, State> { } }; - - return <View style= {styles.login}> <Text style={ styles.subtitle }>{ this._formSubtitle() }</Text> <View style={ this._accountInputGroupStyles() }> @@ -336,12 +325,10 @@ export default class Login extends Component<LoginPropTypes, State> { </Animated.View> </View> <Accordion height={ this._shouldShowAccountHistory(this.props) ? 'auto' : 0 }> - <View onLayout={this._onDropdownLayout} ref={ this._onAccountDropdownContainerRef }> - { <AccountDropdown - items={ accountHistory.slice().reverse() } - onSelect={ this._onSelectAccountFromHistory } - onRemove={ this.props.onRemoveAccountTokenFromHistory } /> } - </View> + { <AccountDropdown + items={ accountHistory.slice().reverse() } + onSelect={ this._onSelectAccountFromHistory } + onRemove={ this.props.onRemoveAccountTokenFromHistory } /> } </Accordion> </View> </View>; |
