Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix lint #991

Merged
merged 1 commit into from
Sep 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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