From e92f3d4445c8304230dbc36730441c860b622ba5 Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 10 Sep 2019 20:05:57 +0100 Subject: [PATCH] chore: fix lint (#991) --- .../app/src/components/BalanceToken.js | 8 +++++- .../LocalIdentityBadge/LocalIdentityBadge.js | 4 ++- apps/finance/app/src/components/Transfers.js | 6 +++- apps/voting/app/src/components/VoteActions.js | 5 ++-- apps/voting/app/src/components/VoteText.js | 28 +++++++++---------- 5 files changed, 30 insertions(+), 21 deletions(-) diff --git a/apps/finance/app/src/components/BalanceToken.js b/apps/finance/app/src/components/BalanceToken.js index 3ff9a44340..b337d35051 100644 --- a/apps/finance/app/src/components/BalanceToken.js +++ b/apps/finance/app/src/components/BalanceToken.js @@ -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 ( diff --git a/apps/finance/app/src/components/LocalIdentityBadge/LocalIdentityBadge.js b/apps/finance/app/src/components/LocalIdentityBadge/LocalIdentityBadge.js index fcaf5b34c9..c151279e6e 100644 --- a/apps/finance/app/src/components/LocalIdentityBadge/LocalIdentityBadge.js +++ b/apps/finance/app/src/components/LocalIdentityBadge/LocalIdentityBadge.js @@ -18,7 +18,9 @@ const LocalIdentityBadge = ({ entity, ...props }) => { label: , onClick: handleClick, }} - popoverTitle={label ? : undefined} + popoverTitle={ + label ? : undefined + } {...props} /> ) diff --git a/apps/finance/app/src/components/Transfers.js b/apps/finance/app/src/components/Transfers.js index ca785b7c69..66432d2e38 100644 --- a/apps/finance/app/src/components/Transfers.js +++ b/apps/finance/app/src/components/Transfers.js @@ -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' diff --git a/apps/voting/app/src/components/VoteActions.js b/apps/voting/app/src/components/VoteActions.js index 168c952cc9..d38bb25b13 100644 --- a/apps/voting/app/src/components/VoteActions.js +++ b/apps/voting/app/src/components/VoteActions.js @@ -223,9 +223,8 @@ const TokenReference = ({ {userBalance} {tokenSymbol} {' '} - due to the snapshot taken at block{' '} - {snapshotBlock}{' '} - at {formatDate(startDate)}.{' '} + due to the snapshot taken at block {snapshotBlock} at{' '} + {formatDate(startDate)}.{' '} {userBalance !== userBalanceNow ? ( Your current balance is{' '} diff --git a/apps/voting/app/src/components/VoteText.js b/apps/voting/app/src/components/VoteText.js index f8c8f5229e..b03a5b0d51 100644 --- a/apps/voting/app/src/components/VoteText.js +++ b/apps/voting/app/src/components/VoteText.js @@ -27,21 +27,19 @@ const VoteText = React.memo( > {text.split('\n').map((line, i) => ( - {transformAddresses( - line, - (part, isAddress, index) => - isAddress ? ( - - {' '} - {' '} - - ) : ( - {part} - ) + {transformAddresses(line, (part, isAddress, index) => + isAddress ? ( + + {' '} + {' '} + + ) : ( + {part} + ) )}