mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-25 22:33:52 +03:00
removed reputation from voters screen
This commit is contained in:
parent
5e9516780f
commit
4638eb4822
@ -5,7 +5,6 @@ import styles from './userListItemStyles';
|
|||||||
|
|
||||||
const UserListItem = ({
|
const UserListItem = ({
|
||||||
avatar,
|
avatar,
|
||||||
reputation,
|
|
||||||
rightText,
|
rightText,
|
||||||
description,
|
description,
|
||||||
username,
|
username,
|
||||||
@ -20,15 +19,7 @@ const UserListItem = ({
|
|||||||
<FastImage style={[styles.avatar]} source={{ uri: avatar }} />
|
<FastImage style={[styles.avatar]} source={{ uri: avatar }} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<View style={styles.userDescription}>
|
<View style={styles.userDescription}>
|
||||||
<Text style={styles.name}>
|
<Text style={styles.name}>{username}</Text>
|
||||||
{username}
|
|
||||||
{reputation && (
|
|
||||||
<Text style={styles.reputation}>
|
|
||||||
{' '}
|
|
||||||
{reputation}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</Text>
|
|
||||||
{description && <Text style={styles.date}>{description}</Text>}
|
{description && <Text style={styles.date}>{description}</Text>}
|
||||||
</View>
|
</View>
|
||||||
{isHasRightItem && (
|
{isHasRightItem && (
|
||||||
|
@ -18,7 +18,6 @@ class VotersDisplayView extends PureComponent {
|
|||||||
// Component Functions
|
// Component Functions
|
||||||
_renderItem = (item, index) => {
|
_renderItem = (item, index) => {
|
||||||
const { handleOnUserPress } = this.props;
|
const { handleOnUserPress } = this.props;
|
||||||
const reputation = `(${item.reputation})`;
|
|
||||||
const value = `$ ${item.value}`;
|
const value = `$ ${item.value}`;
|
||||||
const percent = `${item.percent}%`;
|
const percent = `${item.percent}%`;
|
||||||
|
|
||||||
@ -28,7 +27,6 @@ class VotersDisplayView extends PureComponent {
|
|||||||
avatar={item.avatar}
|
avatar={item.avatar}
|
||||||
index={index}
|
index={index}
|
||||||
username={item.voter}
|
username={item.voter}
|
||||||
reputation={reputation}
|
|
||||||
description={item.created}
|
description={item.created}
|
||||||
isHasRightItem
|
isHasRightItem
|
||||||
isRightColor={item.is_down_vote}
|
isRightColor={item.is_down_vote}
|
||||||
|
Loading…
Reference in New Issue
Block a user