Skip to content
Permalink
Browse files

chore: fix lint (#991)

  • Loading branch information...
sohkai committed Sep 10, 2019
1 parent d8628eb commit e92f3d4445c8304230dbc36730441c860b622ba5
@@ -20,7 +20,13 @@ const splitAmount = amount => {
)
}

const BalanceToken = ({ amount, compact, symbol, verified, convertedAmount = -1 }) => {
const BalanceToken = ({
amount,
compact,
symbol,
verified,
convertedAmount = -1,
}) => {
const theme = useTheme()

return (
@@ -18,7 +18,9 @@ const LocalIdentityBadge = ({ entity, ...props }) => {
label: <LocalLabelPopoverActionLabel hasLabel={Boolean(label)} />,
onClick: handleClick,
}}
popoverTitle={label ? <LocalLabelPopoverTitle label={label} /> : undefined}
popoverTitle={
label ? <LocalLabelPopoverTitle label={label} /> : undefined
}
{...props}
/>
)
@@ -22,7 +22,11 @@ import {
useTheme,
useToast,
} from '@aragon/ui'
import { useConnectedAccount, useCurrentApp, useNetwork } from '@aragon/api-react'
import {
useConnectedAccount,
useCurrentApp,
useNetwork,
} from '@aragon/api-react'
import { saveAs } from 'file-saver'
import * as TransferTypes from '../transfer-types'
import { addressesEqual, toChecksumAddress } from '../lib/web3-utils'
@@ -223,9 +223,8 @@ const TokenReference = ({
<strong>
{userBalance} {tokenSymbol}
</strong>{' '}
due to the snapshot taken at block{' '}
<strong>{snapshotBlock}</strong>{' '}
at <strong>{formatDate(startDate)}</strong>.{' '}
due to the snapshot taken at block <strong>{snapshotBlock}</strong> at{' '}
<strong>{formatDate(startDate)}</strong>.{' '}
{userBalance !== userBalanceNow ? (
<span>
Your current balance is{' '}
@@ -27,21 +27,19 @@ const VoteText = React.memo(
>
{text.split('\n').map((line, i) => (
<React.Fragment key={i}>
{transformAddresses(
line,
(part, isAddress, index) =>
isAddress ? (
<span title={part} key={index}>
{' '}
<LocalIdentityBadge
badgeOnly={disabled}
compact
entity={part}
/>{' '}
</span>
) : (
<span key={index}>{part}</span>
)
{transformAddresses(line, (part, isAddress, index) =>
isAddress ? (
<span title={part} key={index}>
{' '}
<LocalIdentityBadge
badgeOnly={disabled}
compact
entity={part}
/>{' '}
</span>
) : (
<span key={index}>{part}</span>
)
)}
<br />
</React.Fragment>

0 comments on commit e92f3d4

Please sign in to comment.
You can’t perform that action at this time.