Skip to content

Commit

Permalink
fixed more display issues
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p1 committed Sep 19, 2021
1 parent c9390bc commit 9c54c26
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions app/navigation/EditUserNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PropTypes from 'prop-types';

import ChangeLoginScreen from '../screens/EditUser/ChangeLoginScreen.js';
import UserScreen from '../screens/EditUser/UserScreen.js';
import HelpScreen from '../screens/EditUser/HelpScreen.js';

const Stack = createStackNavigator();
const navbarHeight = 65;
Expand All @@ -27,6 +28,11 @@ export default class EditUserNavigation extends React.Component
{props => <ChangeLoginScreen {...props} logout={() => this.props.logout()}
token={this.props.token} url={this.props.url} />}
</Stack.Screen>
<Stack.Screen name="Help" options={{ headerStyle: { height: navbarHeight },
title: '', headerTransparent: true }}>
{props => <HelpScreen {...props} logout={() => this.props.logout()}
token={this.props.token} url={this.props.url} />}
</Stack.Screen>
</Stack.Navigator>
);
}
Expand Down
1 change: 0 additions & 1 deletion app/navigation/MainNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import BottomTabBar from './BottomTabBar.js';
import EditUserNavigation from './EditUserNavigation.js';
import NotifNavigator from './NotifNavigator.js';
import CodeScreen from '../screens/CodeScreen.js';
import HelpScreen from '../screens/HelpScreen.js';

const Tab = createBottomTabNavigator();

Expand Down
1 change: 1 addition & 0 deletions app/screens/EditUser/ChangeLoginScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ const styles = StyleSheet.create({
fontSize: 25,
fontWeight: 'bold',
color: '#fff',
width: '100%',
paddingLeft: 5,
paddingRight: 10,
marginBottom: 15,
Expand Down
10 changes: 4 additions & 6 deletions app/screens/HelpScreen.js → app/screens/EditUser/HelpScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import React from 'react';
import { Text, Linking, Button, StyleSheet, Image, View, ScrollView } from 'react-native';
import PropTypes from 'prop-types';

import SplashScreen from './SplashScreen';
import SplashScreen from '../SplashScreen';

const logo = '../assets/icon.png';
const logo = '../../assets/icon.png';
const githubURL = "https://github.com/p4p1/xss_bomb";
const wikiURL= "https://github.com/p4p1/xss_bomb/wiki";
const trelloURL= "https://github.com/p4p1/xss_bomb/projects";
const playURL = "https://play.google.com/store/apps/details?id=com.p4p1.xss_bomb";
const meURL = "https://leosmith.xyz";

const version = "V0.1.0";
const version = "V0.1.1";

export default class HelpScreen extends React.Component
{
Expand Down Expand Up @@ -45,13 +45,11 @@ export default class HelpScreen extends React.Component
'Content-Type': 'application/json',
}
}).then((response) => response.json()).then((json) => {
console.log(json);
this.setState({gh_version_name: json.tag_name});
this.setState({newVerURL: json.assets[0].browser_download_url});
}).catch((err) => {
console.error(err);
alert("Error: Could not connect");
this.props.logout();
alert("Error: Could not get latest version from github");
});
}

Expand Down

0 comments on commit 9c54c26

Please sign in to comment.