mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 14:18:32 +03:00
Merge pull request #2884 from ecency/nt/voters-list-fix
Nt/voters list fix
This commit is contained in:
commit
a95a0b9707
@ -49,7 +49,7 @@ const UserListItem = ({
|
||||
>
|
||||
<View style={[styles.voteItemWrapper, index % 2 === 1 && styles.voteItemWrapperGray]}>
|
||||
{leftItemRenderer && leftItemRenderer()}
|
||||
{itemIndex && <Text style={styles.itemIndex}>{itemIndex}</Text>}
|
||||
{!!itemIndex && <Text style={styles.itemIndex}>{itemIndex}</Text>}
|
||||
<UserAvatar noAction={true} style={styles.avatar} username={username} />
|
||||
<View style={styles.userDescription}>
|
||||
{!searchValue && <Text style={styles.name}>{text || username}</Text>}
|
||||
@ -80,7 +80,7 @@ const UserListItem = ({
|
||||
<Text style={[styles.date, descriptionStyle]}>{description}</Text>
|
||||
)}
|
||||
</View>
|
||||
{middleText && (
|
||||
{!!middleText && (
|
||||
<View style={styles.middleWrapper}>
|
||||
<Text
|
||||
style={[
|
||||
@ -132,7 +132,7 @@ const UserListItem = ({
|
||||
>
|
||||
{rightText}
|
||||
</Text>
|
||||
{subRightText && <Text style={styles.text}>{subRightText}</Text>}
|
||||
{!!subRightText && <Text style={styles.text}>{subRightText}</Text>}
|
||||
</>
|
||||
</TouchableOpacity>
|
||||
<Popover
|
||||
|
@ -29,7 +29,7 @@ const VotersDisplayView = ({ votes, createdAt = '2010-01-01T00:00:00' }) => {
|
||||
|
||||
const _renderItem = ({ item, index }) => {
|
||||
const value = item.reward && `$ ${item.reward}`;
|
||||
const percent = item.percent100 && `${item.percent100}%`;
|
||||
const percent = !isNaN(item.percent100) && `${item.percent100}%`;
|
||||
|
||||
// snippet to avoid rendering time form long past
|
||||
const minTimestamp = new Date(createdAt).getTime();
|
||||
|
Loading…
Reference in New Issue
Block a user