Skip to content

Commit

Permalink
chore: fix lint (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai authored Sep 10, 2019
1 parent d8628eb commit e92f3d4
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
8 changes: 7 additions & 1 deletion apps/finance/app/src/components/BalanceToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
)
Expand Down
6 changes: 5 additions & 1 deletion apps/finance/app/src/components/Transfers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 2 additions & 3 deletions apps/voting/app/src/components/VoteActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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{' '}
Expand Down
28 changes: 13 additions & 15 deletions apps/voting/app/src/components/VoteText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e92f3d4

Please sign in to comment.