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 = ({ 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 && (

View File

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