From 525f3c084bc2f65fc6ca835e0b29982722c90241 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Wed, 15 May 2019 18:45:56 +0200 Subject: [PATCH] Voting: use LocalIdentityBadge instead of base IdentityBadge (#853) --- apps/voting/app/src/components/VotePanel.js | 2 +- apps/voting/app/src/components/VoteText.js | 4 ++-- apps/voting/app/src/components/VotingCard/VotingCard.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/voting/app/src/components/VotePanel.js b/apps/voting/app/src/components/VotePanel.js index 2389580f4e..1cb4f20c44 100644 --- a/apps/voting/app/src/components/VotePanel.js +++ b/apps/voting/app/src/components/VotePanel.js @@ -12,7 +12,7 @@ import { theme, } from '@aragon/ui' import { useAppState, useConnectedAccount } from '@aragon/api-react' -import LocalIdentityBadge from './LocalIdentityBadge/LocalIdentityBadge.js' +import LocalIdentityBadge from './LocalIdentityBadge/LocalIdentityBadge' import { format } from 'date-fns' import { VOTE_NAY, VOTE_YEA } from '../vote-types' import { round } from '../math-utils' diff --git a/apps/voting/app/src/components/VoteText.js b/apps/voting/app/src/components/VoteText.js index bc2fcd3522..32a342d148 100644 --- a/apps/voting/app/src/components/VoteText.js +++ b/apps/voting/app/src/components/VoteText.js @@ -1,8 +1,8 @@ import React from 'react' import PropTypes from 'prop-types' import { transformAddresses } from '../web3-utils' -import { IdentityBadge } from '@aragon/ui' import AutoLink from '../components/AutoLink' +import LocalIdentityBadge from '../components/LocalIdentityBadge/LocalIdentityBadge' // Render a text associated to a vote. // Usually vote.data.metadata and vote.data.description. @@ -21,7 +21,7 @@ const VoteText = React.memo( isAddress ? ( {' '} - {' '} + {' '} ) : ( {part} diff --git a/apps/voting/app/src/components/VotingCard/VotingCard.js b/apps/voting/app/src/components/VotingCard/VotingCard.js index 6e7a010716..d7cfc2d458 100644 --- a/apps/voting/app/src/components/VotingCard/VotingCard.js +++ b/apps/voting/app/src/components/VotingCard/VotingCard.js @@ -6,7 +6,7 @@ import { VOTE_YEA, VOTE_NAY } from '../../vote-types' import VotingOptions from './VotingOptions' import VoteText from '../VoteText' import VoteStatus from '../VoteStatus' -import { isVoteAction } from '../../vote-utils.js' +import { isVoteAction } from '../../vote-utils' function getOptions(yea, nay, connectedAccountVote) { return [