mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 22:03:21 +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 = ({
|
||||
avatar,
|
||||
reputation,
|
||||
rightText,
|
||||
description,
|
||||
username,
|
||||
@ -20,15 +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 && (
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user