mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-26 06:42:15 +03:00
run lint fix
This commit is contained in:
parent
22c6bcb7e9
commit
c770f50ab2
@ -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)}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import CollapsibleCard from "./view/collapsibleCardView";
|
import CollapsibleCard from './view/collapsibleCardView';
|
||||||
|
|
||||||
export { CollapsibleCard };
|
export { CollapsibleCard };
|
||||||
export default CollapsibleCard;
|
export default CollapsibleCard;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import IconButton from "./view/iconButtonView";
|
import IconButton from './view/iconButtonView';
|
||||||
|
|
||||||
export { IconButton };
|
export { IconButton };
|
||||||
export default IconButton;
|
export default IconButton;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
import NumericKeyboard from "./views/numericKeyboardView";
|
import NumericKeyboard from './views/numericKeyboardView';
|
||||||
|
|
||||||
export { NumericKeyboard };
|
export { NumericKeyboard };
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
import PinAnimatedInput from "./views/pinAnimatedInputView";
|
import PinAnimatedInput from './views/pinAnimatedInputView';
|
||||||
|
|
||||||
export { PinAnimatedInput };
|
export { PinAnimatedInput };
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ProfileSummary from "./view/profileSummaryView";
|
import ProfileSummary from './view/profileSummaryView';
|
||||||
|
|
||||||
export { ProfileSummary };
|
export { ProfileSummary };
|
||||||
export default ProfileSummary;
|
export default ProfileSummary;
|
||||||
|
@ -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]}>
|
||||||
|
@ -11,14 +11,14 @@ const DEFAULT_IMAGE = require('../../../assets/avatar_default.png');
|
|||||||
|
|
||||||
const UserAvatarView = ({ username, size, style }) => {
|
const UserAvatarView = ({ username, size, style }) => {
|
||||||
const imageSize = size === 'xl' ? 'large' : 'medium';
|
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;
|
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;
|
@ -1,2 +1 @@
|
|||||||
export * from './baseNavigator';
|
export * from './baseNavigator';
|
||||||
|
|
||||||
|
@ -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) {
|
||||||
|
@ -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 '..';
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user