run lint fix

This commit is contained in:
ue 2018-12-11 18:49:26 +03:00
parent 22c6bcb7e9
commit c770f50ab2
14 changed files with 27 additions and 23 deletions

View File

@ -1,7 +1,7 @@
import React from "react"; import React from 'react';
import { TouchableOpacity, Text } from "react-native"; import { TouchableOpacity, Text } from 'react-native';
import styles from "./circularButtonStyles"; import styles from './circularButtonStyles';
/* Props /* Props
* *
@ -10,7 +10,9 @@ import styles from "./circularButtonStyles";
* @prop { array } style - It is addionatly syle for button. * @prop { array } style - It is addionatly syle for button.
* @prop { any } value - When button clicked, this value will push with on press func. * @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,
}) => (
<TouchableOpacity <TouchableOpacity
style={[styles.button, style]} style={[styles.button, style]}
onPress={() => onPress && onPress(value)} onPress={() => onPress && onPress(value)}

View File

@ -1,4 +1,4 @@
import CollapsibleCard from "./view/collapsibleCardView"; import CollapsibleCard from './view/collapsibleCardView';
export { CollapsibleCard }; export { CollapsibleCard };
export default CollapsibleCard; export default CollapsibleCard;

View File

@ -1,4 +1,4 @@
import IconButton from "./view/iconButtonView"; import IconButton from './view/iconButtonView';
export { IconButton }; export { IconButton };
export default IconButton; export default IconButton;

View File

@ -1,3 +1,3 @@
import NumericKeyboard from "./views/numericKeyboardView"; import NumericKeyboard from './views/numericKeyboardView';
export { NumericKeyboard }; export { NumericKeyboard };

View File

@ -1,3 +1,3 @@
import PinAnimatedInput from "./views/pinAnimatedInputView"; import PinAnimatedInput from './views/pinAnimatedInputView';
export { PinAnimatedInput }; export { PinAnimatedInput };

View File

@ -1,4 +1,4 @@
import ProfileSummary from "./view/profileSummaryView"; import ProfileSummary from './view/profileSummaryView';
export { ProfileSummary }; export { ProfileSummary };
export default ProfileSummary; export default ProfileSummary;

View File

@ -113,7 +113,9 @@ class TabBar extends Component {
}; };
render() { render() {
const { activeTab, backgroundColor, style, goToPage } = this.props; const {
activeTab, backgroundColor, style, goToPage,
} = this.props;
return ( return (
<View style={[styles.tabs, { backgroundColor }, style]}> <View style={[styles.tabs, { backgroundColor }, style]}>

View File

@ -14,11 +14,11 @@ const UserAvatarView = ({ username, size, style }) => {
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; let _size = 32;
if(size === 'xl') { if (size === 'xl') {
_size = 64 _size = 64;
} }
return <Image style={[styles.avatar, style, {width: _size, height: _size, borderRadius: _size / 2}]} source={_avatar} />; return <Image style={[styles.avatar, style, { width: _size, height: _size, borderRadius: _size / 2 }]} source={_avatar} />;
}; };
export default UserAvatarView; export default UserAvatarView;

View File

@ -1,2 +1 @@
export * from './baseNavigator'; export * from './baseNavigator';

View File

@ -93,7 +93,6 @@ export const loginWithSC2 = async (accessToken) => {
let avatar = ''; let avatar = '';
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
try { try {
const jsonMetadata = JSON.parse(account.account.json_metadata); const jsonMetadata = JSON.parse(account.account.json_metadata);
if (Object.keys(jsonMetadata).length !== 0) { if (Object.keys(jsonMetadata).length !== 0) {

View File

@ -7,7 +7,9 @@ import { setUserDataWithPinCode, verifyPinCode } from '../../../providers/steem/
// Actions & Services // Actions & Services
import { closePinCodeModal } from '../../../redux/actions/applicationActions'; import { closePinCodeModal } from '../../../redux/actions/applicationActions';
import { getExistUser, setExistUser, getUserData, getUserDataWithUsername } from '../../../realm/realm'; import {
getExistUser, setExistUser, getUserData, getUserDataWithUsername,
} from '../../../realm/realm';
import { updateCurrentAccount } from '../../../redux/actions/accountAction'; import { updateCurrentAccount } from '../../../redux/actions/accountAction';
import { formatAccount } from '../../../utils/user'; import { formatAccount } from '../../../utils/user';
import { PinCodeScreen } from '..'; import { PinCodeScreen } from '..';

View File

@ -24,9 +24,9 @@ export const markDown2Html = (input) => {
// TODO: Implement Regex --> Look at utls/formatter.js // TODO: Implement Regex --> Look at utls/formatter.js
// if (output.startsWith('<p>')) { // if (output.startsWith('<p>')) {
// output.substring(3, output.length - 3); // output.substring(3, output.length - 3);
// } // }
return output; return output;
}; };