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 { 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,
}) => (
<TouchableOpacity
style={[styles.button, style]}
onPress={() => onPress && onPress(value)}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -113,7 +113,9 @@ class TabBar extends Component {
};
render() {
const { activeTab, backgroundColor, style, goToPage } = this.props;
const {
activeTab, backgroundColor, style, goToPage,
} = this.props;
return (
<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;
let _size = 32;
if(size === 'xl') {
_size = 64
if (size === 'xl') {
_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;

View File

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

View File

@ -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) {

View File

@ -7,7 +7,9 @@ import { setUserDataWithPinCode, verifyPinCode } from '../../../providers/steem/
// Actions & Services
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 { formatAccount } from '../../../utils/user';
import { PinCodeScreen } from '..';

View File

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