Skip to content

Commit

Permalink
Merge pull request #314 from Mikunj/fix/minor-bug-fixes
Browse files Browse the repository at this point in the history
[Fix]Minor bug fixes
  • Loading branch information
Mikunj authored Mar 22, 2018
2 parents 188b983 + 4fa11c3 commit e7a3f65
Show file tree
Hide file tree
Showing 36 changed files with 178 additions and 218 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-41.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-42.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-58.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-59.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-76.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-81.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ios/kitsu_mobile/Images.xcassets/AppIcon.appiconset/Icon-87.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/routes/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ import { StackNavigator } from 'react-navigation';
import library from 'kitsu/assets/img/tabbar_icons/library.png';
import { LibraryScreen } from 'kitsu/screens/Library/LibraryScreen';
import { navigationBarHeight, statusBarHeight } from 'kitsu/constants/app';
import { LibrarySettings } from 'kitsu/screens/Library/LibrarySettings';
import navigationOptions from './navigationOptions';
import { commonRoutes } from './common';

const LibraryStack = StackNavigator({
LibraryScreen: {
screen: LibraryScreen,
},
LibrarySettings: {
screen: LibrarySettings,
},
...commonRoutes,
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/routes/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
SettingsScreen,
GeneralSettings,
PrivacySettings,
LibraryScreen,
LibrarySettings,
Blocking,
LinkedAccounts,
ImportLibrary,
Expand All @@ -23,7 +23,7 @@ export const sidebarRoutes = {
screen: PrivacySettings,
},
LibrarySettings: {
screen: LibraryScreen,
screen: LibrarySettings,
},
Blocking: {
screen: Blocking,
Expand Down
6 changes: 6 additions & 0 deletions src/screens/Auth/AuthScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { createUser } from 'kitsu/store/user/actions';
import { TERMS_URL } from 'kitsu/constants/app';
import isEmpty from 'lodash/isEmpty';
import moment from 'moment';
import { Sentry } from 'react-native-sentry';
import AuthWrapper from './AuthWrapper';
import styles from './styles';

Expand Down Expand Up @@ -109,6 +110,11 @@ class AuthScreen extends React.Component {
}
},
(error) => {
Sentry.captureMessage('FBSDK - Facebook Login Failed', {
extra: {
error,
},
});
console.log(`Login fail with error: ${error}`);
},
);
Expand Down
6 changes: 6 additions & 0 deletions src/screens/Intro/RegistrationScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { loginUser } from 'kitsu/store/auth/actions';
import * as colors from 'kitsu/constants/colors';
import { placeholderImage } from 'kitsu/assets/img/intro';
import { kitsuConfig } from 'kitsu/config/env';
import { Sentry } from 'react-native-sentry';
import { IntroHeader } from './common/';
import styles from './styles';

Expand Down Expand Up @@ -77,6 +78,11 @@ class RegistrationScreen extends React.Component {
},
(error) => {
this.setState({ loggingUser: false });
Sentry.captureMessage('FBSDK - Facebook Login Failed', {
extra: {
error,
},
});
console.log(`Login fail with error: ${error}`);
},
);
Expand Down
4 changes: 3 additions & 1 deletion src/screens/Library/LibraryScreen/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export class LibraryScreenComponent extends PureComponent {
onOptionPress = () => {
const { navigation } = this.props;
if (navigation) {
navigation.navigate('LibrarySettings');
navigation.navigate('LibrarySettings', {
navigateBackOnSave: true,
});
}
}

Expand Down
9 changes: 6 additions & 3 deletions src/screens/Onboarding/Aozora/WelcomeScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { View, Text, ImageBackground } from 'react-native';
import { View, Text, ImageBackground, ScrollView } from 'react-native';
import FastImage from 'react-native-fast-image';
import { Button } from 'kitsu/components/Button';
import { NavigationActions } from 'react-navigation';
Expand Down Expand Up @@ -43,7 +43,10 @@ class WelcomeScreen extends React.Component {

return (
<View style={commonStyles.container}>
<View style={styles.contentWrapper}>
<ScrollView
style={styles.contentWrapper}
contentContainerStyle={{ flexGrow: 1 }}
>
<Text style={[commonStyles.tutorialText, styles.tutorialText]}>
{title}
</Text>
Expand All @@ -63,7 +66,7 @@ class WelcomeScreen extends React.Component {
title={"Let's get started!"}
titleStyle={commonStyles.buttonTitleStyle}
/>
</View>
</ScrollView>
</View>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/screens/Onboarding/common/RatingSystemScreen.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { View, Text, TouchableOpacity, ScrollView } from 'react-native';
import FastImage from 'react-native-fast-image';
import { connect } from 'react-redux';
import { upperFirst, toLower } from 'lodash';
Expand Down Expand Up @@ -91,7 +91,7 @@ class RatingSystemScreen extends React.Component {
const { loading } = this.props;
return (
<View style={styles.container}>
<View style={styles.contentWrapper}>
<ScrollView style={styles.contentWrapper}>
<Text style={styles.tutorialText}>
How would you prefer to rate the things you’ve seen and read?
</Text>
Expand All @@ -118,7 +118,7 @@ class RatingSystemScreen extends React.Component {
title={`Use ${upperFirst(toLower(ratingSystem))} Ratings`}
titleStyle={styles.buttonTitleStyle}
/>
</View>
</ScrollView>
<View style={{ flexDirection: 'row' }}>
<FastImage source={fox} style={{ width: 50, height: 50, zIndex: 2 }} />
<View
Expand Down
140 changes: 0 additions & 140 deletions src/screens/Sidebar/Library/LibraryScreen.js

This file was deleted.

Loading

0 comments on commit e7a3f65

Please sign in to comment.