mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-22 23:28:56 +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]}>
|
<View style={[styles.voteItemWrapper, index % 2 === 1 && styles.voteItemWrapperGray]}>
|
||||||
{leftItemRenderer && leftItemRenderer()}
|
{leftItemRenderer && leftItemRenderer()}
|
||||||
{itemIndex && <Text style={styles.itemIndex}>{itemIndex}</Text>}
|
{!!itemIndex && <Text style={styles.itemIndex}>{itemIndex}</Text>}
|
||||||
<UserAvatar noAction={true} style={styles.avatar} username={username} />
|
<UserAvatar noAction={true} style={styles.avatar} username={username} />
|
||||||
<View style={styles.userDescription}>
|
<View style={styles.userDescription}>
|
||||||
{!searchValue && <Text style={styles.name}>{text || username}</Text>}
|
{!searchValue && <Text style={styles.name}>{text || username}</Text>}
|
||||||
@ -80,7 +80,7 @@ const UserListItem = ({
|
|||||||
<Text style={[styles.date, descriptionStyle]}>{description}</Text>
|
<Text style={[styles.date, descriptionStyle]}>{description}</Text>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
{middleText && (
|
{!!middleText && (
|
||||||
<View style={styles.middleWrapper}>
|
<View style={styles.middleWrapper}>
|
||||||
<Text
|
<Text
|
||||||
style={[
|
style={[
|
||||||
@ -132,7 +132,7 @@ const UserListItem = ({
|
|||||||
>
|
>
|
||||||
{rightText}
|
{rightText}
|
||||||
</Text>
|
</Text>
|
||||||
{subRightText && <Text style={styles.text}>{subRightText}</Text>}
|
{!!subRightText && <Text style={styles.text}>{subRightText}</Text>}
|
||||||
</>
|
</>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<Popover
|
<Popover
|
||||||
|
@ -29,7 +29,7 @@ const VotersDisplayView = ({ votes, createdAt = '2010-01-01T00:00:00' }) => {
|
|||||||
|
|
||||||
const _renderItem = ({ item, index }) => {
|
const _renderItem = ({ item, index }) => {
|
||||||
const value = item.reward && `$ ${item.reward}`;
|
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
|
// snippet to avoid rendering time form long past
|
||||||
const minTimestamp = new Date(createdAt).getTime();
|
const minTimestamp = new Date(createdAt).getTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user