Skip to content

Commit

Permalink
Voting: use LocalIdentityBadge instead of base IdentityBadge (aragon#853
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sohkai authored May 15, 2019
1 parent 53e9acb commit 525f3c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/voting/app/src/components/VotePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions apps/voting/app/src/components/VoteText.js
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -21,7 +21,7 @@ const VoteText = React.memo(
isAddress ? (
<span title={part} key={index}>
{' '}
<IdentityBadge entity={part} compact />{' '}
<LocalIdentityBadge entity={part} compact />{' '}
</span>
) : (
<span key={index}>{part}</span>
Expand Down
2 changes: 1 addition & 1 deletion apps/voting/app/src/components/VotingCard/VotingCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 525f3c0

Please sign in to comment.