mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 22:03:21 +03:00
commit
2a615a519b
@ -8,11 +8,14 @@ export default EStyleSheet.create({
|
||||
isPin: {
|
||||
backgroundColor: '$primaryBlue',
|
||||
},
|
||||
isPostCardTag: {
|
||||
backgroundColor: '$iconColor',
|
||||
},
|
||||
textWrapper: {
|
||||
paddingHorizontal: 10,
|
||||
justifyContent: 'center',
|
||||
marginRight: 8,
|
||||
height: 15,
|
||||
height: 20,
|
||||
backgroundColor: '$iconColor',
|
||||
borderRadius: 50,
|
||||
},
|
||||
|
@ -2,10 +2,14 @@ import React, { Fragment } from 'react';
|
||||
import { Text, View, TouchableOpacity } from 'react-native';
|
||||
import styles from './tagStyles';
|
||||
|
||||
const Tag = ({ onPress, isPin, value }) => (
|
||||
const Tag = ({
|
||||
onPress, isPin, value, isPostCardTag,
|
||||
}) => (
|
||||
<Fragment>
|
||||
<TouchableOpacity onPress={() => onPress && onPress(value)}>
|
||||
<View style={[styles.textWrapper, isPin && styles.isPin]}>
|
||||
<View
|
||||
style={[styles.textWrapper, isPin && styles.isPin, isPostCardTag && styles.isPostCardTag]}
|
||||
>
|
||||
<Text style={[styles.text]}>{value}</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
|
@ -5,7 +5,6 @@ import styles from './userListItemStyles';
|
||||
|
||||
const UserListItem = ({
|
||||
avatar,
|
||||
reputation,
|
||||
rightText,
|
||||
description,
|
||||
username,
|
||||
@ -20,10 +19,7 @@ const UserListItem = ({
|
||||
<FastImage style={[styles.avatar]} source={{ uri: avatar }} />
|
||||
</TouchableOpacity>
|
||||
<View style={styles.userDescription}>
|
||||
<Text style={styles.name}>
|
||||
{username}
|
||||
{reputation && <Text style={styles.reputation}>{reputation}</Text>}
|
||||
</Text>
|
||||
<Text style={styles.name}>{username}</Text>
|
||||
{description && <Text style={styles.date}>{description}</Text>}
|
||||
</View>
|
||||
{isHasRightItem && (
|
||||
|
@ -77,7 +77,7 @@ class PostHeaderDescription extends Component {
|
||||
</TouchableOpacity>
|
||||
{tag && (
|
||||
<TouchableOpacity onPress={() => tagOnPress && tagOnPress()}>
|
||||
<Tag isPin value={tag} />
|
||||
<Tag isPostCardTag isPin value={tag} />
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
<Text style={styles.date}>{date}</Text>
|
||||
|
@ -52,6 +52,7 @@ class SearchModalView extends Component {
|
||||
placeholder={placeholder}
|
||||
placeholderTextColor="#c1c5c7"
|
||||
autoCapitalize="none"
|
||||
autoFocus
|
||||
/>
|
||||
<IconButton
|
||||
iconStyle={styles.closeIcon}
|
||||
|
@ -11,14 +11,13 @@ import styles from './votersDisplayStyles';
|
||||
|
||||
class VotersDisplayView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
|
||||
// Component Functions
|
||||
_renderItem = (item, index) => {
|
||||
const { handleOnUserPress } = this.props;
|
||||
const reputation = `(${item.reputation})`;
|
||||
const value = `$ ${item.value}`;
|
||||
const percent = `${item.percent}%`;
|
||||
|
||||
@ -28,7 +27,6 @@ class VotersDisplayView extends PureComponent {
|
||||
avatar={item.avatar}
|
||||
index={index}
|
||||
username={item.voter}
|
||||
reputation={reputation}
|
||||
description={item.created}
|
||||
isHasRightItem
|
||||
isRightColor={item.is_down_vote}
|
||||
|
@ -99,7 +99,7 @@ class WalletDetailsView extends Component {
|
||||
</GrayWrapper>
|
||||
{walletData.showPowerDown && (
|
||||
<WalletLineItem
|
||||
text={`Next power down is in ${walletData.nextVestingWithdrawal} days`}
|
||||
text={`Next power down is in ${walletData.nextVestingWithdrawal} day`}
|
||||
textColor="#788187"
|
||||
iconName="ios-information-circle-outline"
|
||||
/>
|
||||
|
@ -27,7 +27,7 @@ class ApplicationScreen extends Component {
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<StatusBar backgroundColor="blue" barStyle={barStyle} />
|
||||
<StatusBar barStyle={barStyle} />
|
||||
<IntlProvider locale={locale} messages={flattenMessages(messages[locale])}>
|
||||
<ReduxNavigation />
|
||||
</IntlProvider>
|
||||
|
@ -69,7 +69,7 @@ class ProfileScreen extends Component {
|
||||
}
|
||||
return (
|
||||
<Fragment>
|
||||
<Header selectedUser={user} isReverse={isReverseHeader} />
|
||||
<Header key={user && user.username} selectedUser={user} isReverse={isReverseHeader} />
|
||||
<View style={styles.container}>
|
||||
{!isReady ? (
|
||||
<ProfileSummaryPlaceHolder />
|
||||
|
Loading…
Reference in New Issue
Block a user