diff --git a/src/components/buttons/views/circularButtonView.js b/src/components/buttons/views/circularButtonView.js index dd2811fb9..4d1e02da2 100644 --- a/src/components/buttons/views/circularButtonView.js +++ b/src/components/buttons/views/circularButtonView.js @@ -1,7 +1,7 @@ -import React from "react"; -import { TouchableOpacity, Text } from "react-native"; +import React from 'react'; +import { TouchableOpacity, Text } from 'react-native'; -import styles from "./circularButtonStyles"; +import styles from './circularButtonStyles'; /* Props * @@ -10,7 +10,9 @@ import styles from "./circularButtonStyles"; * @prop { array } style - It is addionatly syle for button. * @prop { any } value - When button clicked, this value will push with on press func. */ -const CircularButtonView = ({ text, onPress, style, value }) => ( +const CircularButtonView = ({ + text, onPress, style, value, +}) => ( onPress && onPress(value)} diff --git a/src/components/collapsibleCard/index.js b/src/components/collapsibleCard/index.js index c27d32cb3..39300054f 100644 --- a/src/components/collapsibleCard/index.js +++ b/src/components/collapsibleCard/index.js @@ -1,4 +1,4 @@ -import CollapsibleCard from "./view/collapsibleCardView"; +import CollapsibleCard from './view/collapsibleCardView'; export { CollapsibleCard }; export default CollapsibleCard; diff --git a/src/components/iconButton/index.js b/src/components/iconButton/index.js index bdab6de25..aa125d20c 100644 --- a/src/components/iconButton/index.js +++ b/src/components/iconButton/index.js @@ -1,4 +1,4 @@ -import IconButton from "./view/iconButtonView"; +import IconButton from './view/iconButtonView'; export { IconButton }; export default IconButton; diff --git a/src/components/numericKeyboard/index.js b/src/components/numericKeyboard/index.js index de72da0d0..8617fa4c1 100644 --- a/src/components/numericKeyboard/index.js +++ b/src/components/numericKeyboard/index.js @@ -1,3 +1,3 @@ -import NumericKeyboard from "./views/numericKeyboardView"; +import NumericKeyboard from './views/numericKeyboardView'; export { NumericKeyboard }; diff --git a/src/components/pinAnimatedInput/index.js b/src/components/pinAnimatedInput/index.js index 1966d4bae..06b102915 100644 --- a/src/components/pinAnimatedInput/index.js +++ b/src/components/pinAnimatedInput/index.js @@ -1,3 +1,3 @@ -import PinAnimatedInput from "./views/pinAnimatedInputView"; +import PinAnimatedInput from './views/pinAnimatedInputView'; export { PinAnimatedInput }; diff --git a/src/components/profileSummary/index.js b/src/components/profileSummary/index.js index 3b199a70e..63f693672 100644 --- a/src/components/profileSummary/index.js +++ b/src/components/profileSummary/index.js @@ -1,4 +1,4 @@ -import ProfileSummary from "./view/profileSummaryView"; +import ProfileSummary from './view/profileSummaryView'; export { ProfileSummary }; export default ProfileSummary; diff --git a/src/components/tabBar/view/tabBarView.js b/src/components/tabBar/view/tabBarView.js index a0ee1020c..9949ca40b 100644 --- a/src/components/tabBar/view/tabBarView.js +++ b/src/components/tabBar/view/tabBarView.js @@ -113,7 +113,9 @@ class TabBar extends Component { }; render() { - const { activeTab, backgroundColor, style, goToPage } = this.props; + const { + activeTab, backgroundColor, style, goToPage, + } = this.props; return ( diff --git a/src/components/userAvatar/view/userAvatarView.js b/src/components/userAvatar/view/userAvatarView.js index 9d8a30940..a253c8f62 100644 --- a/src/components/userAvatar/view/userAvatarView.js +++ b/src/components/userAvatar/view/userAvatarView.js @@ -11,14 +11,14 @@ const DEFAULT_IMAGE = require('../../../assets/avatar_default.png'); const UserAvatarView = ({ username, size, style }) => { const imageSize = size === 'xl' ? 'large' : 'medium'; - const _avatar = username ? { uri: `https://steemitimages.com/u/${username}/avatar/${imageSize}` } : DEFAULT_IMAGE; + const _avatar = username ? { uri: `https://steemitimages.com/u/${username}/avatar/${imageSize}` } : DEFAULT_IMAGE; let _size = 32; - if(size === 'xl') { - _size = 64 + if (size === 'xl') { + _size = 64; } - return ; + return ; }; -export default UserAvatarView; \ No newline at end of file +export default UserAvatarView; diff --git a/src/navigation/index.js b/src/navigation/index.js index ab0ceea0f..bf512771d 100644 --- a/src/navigation/index.js +++ b/src/navigation/index.js @@ -1,2 +1 @@ export * from './baseNavigator'; - diff --git a/src/providers/steem/auth.js b/src/providers/steem/auth.js index 29d03d059..72b3d208e 100644 --- a/src/providers/steem/auth.js +++ b/src/providers/steem/auth.js @@ -93,7 +93,6 @@ export const loginWithSC2 = async (accessToken) => { let avatar = ''; return new Promise((resolve, reject) => { - try { const jsonMetadata = JSON.parse(account.account.json_metadata); if (Object.keys(jsonMetadata).length !== 0) { diff --git a/src/screens/login/screen/loginScreen.js b/src/screens/login/screen/loginScreen.js index c4c61d668..710f9bf64 100644 --- a/src/screens/login/screen/loginScreen.js +++ b/src/screens/login/screen/loginScreen.js @@ -98,7 +98,7 @@ class LoginScreen extends Component { const { isLoading, username, isUsernameValid, keyboardIsOpen, password, isModalOpen, } = this.state; - + return (