Skip to content

Commit 9c54c26

Browse files
committed
fixed more display issues
1 parent c9390bc commit 9c54c26

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

app/navigation/EditUserNavigation.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
44

55
import ChangeLoginScreen from '../screens/EditUser/ChangeLoginScreen.js';
66
import UserScreen from '../screens/EditUser/UserScreen.js';
7+
import HelpScreen from '../screens/EditUser/HelpScreen.js';
78

89
const Stack = createStackNavigator();
910
const navbarHeight = 65;
@@ -27,6 +28,11 @@ export default class EditUserNavigation extends React.Component
2728
{props => <ChangeLoginScreen {...props} logout={() => this.props.logout()}
2829
token={this.props.token} url={this.props.url} />}
2930
</Stack.Screen>
31+
<Stack.Screen name="Help" options={{ headerStyle: { height: navbarHeight },
32+
title: '', headerTransparent: true }}>
33+
{props => <HelpScreen {...props} logout={() => this.props.logout()}
34+
token={this.props.token} url={this.props.url} />}
35+
</Stack.Screen>
3036
</Stack.Navigator>
3137
);
3238
}

app/navigation/MainNavigator.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import BottomTabBar from './BottomTabBar.js';
88
import EditUserNavigation from './EditUserNavigation.js';
99
import NotifNavigator from './NotifNavigator.js';
1010
import CodeScreen from '../screens/CodeScreen.js';
11-
import HelpScreen from '../screens/HelpScreen.js';
1211

1312
const Tab = createBottomTabNavigator();
1413

app/screens/EditUser/ChangeLoginScreen.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const styles = StyleSheet.create({
114114
fontSize: 25,
115115
fontWeight: 'bold',
116116
color: '#fff',
117+
width: '100%',
117118
paddingLeft: 5,
118119
paddingRight: 10,
119120
marginBottom: 15,
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import React from 'react';
22
import { Text, Linking, Button, StyleSheet, Image, View, ScrollView } from 'react-native';
33
import PropTypes from 'prop-types';
44

5-
import SplashScreen from './SplashScreen';
5+
import SplashScreen from '../SplashScreen';
66

7-
const logo = '../assets/icon.png';
7+
const logo = '../../assets/icon.png';
88
const githubURL = "https://github.com/p4p1/xss_bomb";
99
const wikiURL= "https://github.com/p4p1/xss_bomb/wiki";
1010
const trelloURL= "https://github.com/p4p1/xss_bomb/projects";
1111
const playURL = "https://play.google.com/store/apps/details?id=com.p4p1.xss_bomb";
1212
const meURL = "https://leosmith.xyz";
1313

14-
const version = "V0.1.0";
14+
const version = "V0.1.1";
1515

1616
export default class HelpScreen extends React.Component
1717
{
@@ -45,13 +45,11 @@ export default class HelpScreen extends React.Component
4545
'Content-Type': 'application/json',
4646
}
4747
}).then((response) => response.json()).then((json) => {
48-
console.log(json);
4948
this.setState({gh_version_name: json.tag_name});
5049
this.setState({newVerURL: json.assets[0].browser_download_url});
5150
}).catch((err) => {
5251
console.error(err);
53-
alert("Error: Could not connect");
54-
this.props.logout();
52+
alert("Error: Could not get latest version from github");
5553
});
5654
}
5755

0 commit comments

Comments
 (0)