mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-25 22:33:52 +03:00
run lint fix
This commit is contained in:
parent
22c6bcb7e9
commit
c770f50ab2
@ -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)}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import CollapsibleCard from "./view/collapsibleCardView";
|
||||
import CollapsibleCard from './view/collapsibleCardView';
|
||||
|
||||
export { CollapsibleCard };
|
||||
export default CollapsibleCard;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import IconButton from "./view/iconButtonView";
|
||||
import IconButton from './view/iconButtonView';
|
||||
|
||||
export { IconButton };
|
||||
export default IconButton;
|
||||
|
@ -1,3 +1,3 @@
|
||||
import NumericKeyboard from "./views/numericKeyboardView";
|
||||
import NumericKeyboard from './views/numericKeyboardView';
|
||||
|
||||
export { NumericKeyboard };
|
||||
|
@ -1,3 +1,3 @@
|
||||
import PinAnimatedInput from "./views/pinAnimatedInputView";
|
||||
import PinAnimatedInput from './views/pinAnimatedInputView';
|
||||
|
||||
export { PinAnimatedInput };
|
||||
|
@ -1,4 +1,4 @@
|
||||
import ProfileSummary from "./view/profileSummaryView";
|
||||
import ProfileSummary from './view/profileSummaryView';
|
||||
|
||||
export { ProfileSummary };
|
||||
export default ProfileSummary;
|
||||
|
@ -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]}>
|
||||
|
@ -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 <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;
|
@ -1,2 +1 @@
|
||||
export * from './baseNavigator';
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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 '..';
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user