From 0f8f77bad7aa36b101650971b7675c9594691968 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 6 Feb 2016 19:23:11 +0000 Subject: [PATCH] Fix modal --- app/components/login/token-help.js | 13 ++++++++++--- app/components/routes/login.js | 7 +------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/components/login/token-help.js b/app/components/login/token-help.js index b4742fd..9908a60 100644 --- a/app/components/login/token-help.js +++ b/app/components/login/token-help.js @@ -6,6 +6,7 @@ const { StyleSheet, Text, View, + TouchableWithoutFeedback } = React; const styles = StyleSheet.create({ @@ -38,12 +39,16 @@ const styles = StyleSheet.create({ }); export default class Login extends React.Component { + hide() { + this.refs.modal.close(); + } render() { return ( @@ -56,9 +61,11 @@ export default class Login extends React.Component { To generate a new token, visit your CircleCI accounts page. - - Swipe down to dismiss - + + + Swipe down to dismiss + + ); } diff --git a/app/components/routes/login.js b/app/components/routes/login.js index 4ac075e..96ca8fb 100644 --- a/app/components/routes/login.js +++ b/app/components/routes/login.js @@ -7,7 +7,6 @@ import { set } from '../../api/token'; import loaderHandler from 'react-native-busy-indicator/LoaderHandler'; import BusyIndicator from 'react-native-busy-indicator'; - const dismissKeyboard = require('dismissKeyboard'); const { @@ -43,11 +42,6 @@ const styles = StyleSheet.create({ backgroundColor: GlobalStyles.get('CIRCLE_GREEN'), borderColor: GlobalStyles.get('CIRCLE_GREEN'), }, - infoButton: { - flex: 0.08, - backgroundColor: GlobalStyles.get('CIRCLE_NAVBAR_BG'), - borderColor: GlobalStyles.get('CIRCLE_NAVBAR_BG'), - }, button: { justifyContent: 'center', alignItems: 'center', @@ -103,6 +97,7 @@ export default class Login extends React.Component { } proceed() { + this.hideTokenHelp(); this.props.nav.push(RouteMaster.get('HOME')); }