Added time for voters page item

This commit is contained in:
Mustafa Buyukcelebi 2019-10-30 11:56:41 +03:00
parent 7592a3a5cc
commit eac7f3542c
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,7 @@ const VotersDisplayView = ({ votes, navigation }) => {
const _renderItem = (item, index) => {
const value = `$ ${item.value}`;
const percent = `${item.percent}%`;
console.log(item);
return (
<UserListItem
index={index}

View File

@ -25,13 +25,14 @@ export const parsePost = async (post, currentUserName, isPromoted) => {
if (!post) {
return null;
}
const activeVotes = await getActiveVotes(get(post, 'author'), get(post, 'permlink'));
if (currentUserName === post.author) {
post.markdownBody = post.body;
}
post.is_promoted = isPromoted;
post.json_metadata = JSON.parse(post.json_metadata);
post.image = postImage(post.json_metadata, post.body);
post.active_votes = activeVotes;
post.vote_count = post.active_votes.length;
post.author_reputation = getReputation(post.author_reputation);
post.avatar = getResizedAvatar(get(post, 'author'));