removed reputation from voters screen

This commit is contained in:
u-e 2018-12-07 00:26:18 +03:00
parent 5e9516780f
commit 4638eb4822
2 changed files with 4 additions and 15 deletions

View File

@ -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 && (

View File

@ -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}