meriadec
7 years ago
No known key found for this signature in database
GPG Key ID: 1D2FC2305E2CB399
2 changed files with
1 additions and
11 deletions
-
src/components/OperationsList/Operation.js
-
src/components/OperationsList/index.js
|
|
@ -90,7 +90,6 @@ const Cell = styled(Box).attrs({ |
|
|
|
type Props = { |
|
|
|
account: Account, |
|
|
|
currencySettings: CurrencySettings, |
|
|
|
onAccountClick: (account: Account) => void, |
|
|
|
onOperationClick: ({ operation: Operation, account: Account, marketColor: string }) => void, |
|
|
|
marketIndicator: string, |
|
|
|
t: T, |
|
|
@ -100,7 +99,6 @@ type Props = { |
|
|
|
|
|
|
|
class OperationComponent extends PureComponent<Props> { |
|
|
|
static defaultProps = { |
|
|
|
onAccountClick: noop, |
|
|
|
onOperationClick: noop, |
|
|
|
withAccount: false, |
|
|
|
} |
|
|
@ -109,7 +107,6 @@ class OperationComponent extends PureComponent<Props> { |
|
|
|
const { |
|
|
|
account, |
|
|
|
currencySettings, |
|
|
|
onAccountClick, |
|
|
|
onOperationClick, |
|
|
|
t, |
|
|
|
op, |
|
|
@ -164,10 +161,6 @@ class OperationComponent extends PureComponent<Props> { |
|
|
|
horizontal |
|
|
|
flow={2} |
|
|
|
style={{ cursor: 'pointer' }} |
|
|
|
onClick={e => { |
|
|
|
e.stopPropagation() |
|
|
|
onAccountClick(account) |
|
|
|
}} |
|
|
|
> |
|
|
|
<Box |
|
|
|
alignItems="center" |
|
|
|
|
|
@ -62,7 +62,6 @@ type Props = { |
|
|
|
account: Account, |
|
|
|
accounts: Account[], |
|
|
|
canShowMore: boolean, |
|
|
|
onAccountClick?: Function, |
|
|
|
openModal: Function, |
|
|
|
t: T, |
|
|
|
withAccount?: boolean, |
|
|
@ -78,7 +77,6 @@ const initialState = { |
|
|
|
} |
|
|
|
export class OperationsList extends PureComponent<Props, State> { |
|
|
|
static defaultProps = { |
|
|
|
onAccountClick: noop, |
|
|
|
withAccount: false, |
|
|
|
canShowMore: false, |
|
|
|
} |
|
|
@ -93,7 +91,7 @@ export class OperationsList extends PureComponent<Props, State> { |
|
|
|
} |
|
|
|
|
|
|
|
render() { |
|
|
|
const { account, accounts, canShowMore, onAccountClick, t, title, withAccount } = this.props |
|
|
|
const { account, accounts, canShowMore, t, title, withAccount } = this.props |
|
|
|
const { nbToShow } = this.state |
|
|
|
|
|
|
|
const totalOperations = accounts |
|
|
@ -135,7 +133,6 @@ export class OperationsList extends PureComponent<Props, State> { |
|
|
|
<Operation |
|
|
|
account={account} |
|
|
|
key={op.id} |
|
|
|
onAccountClick={onAccountClick} |
|
|
|
onOperationClick={this.handleClickOperation} |
|
|
|
op={op} |
|
|
|
t={t} |
|
|
|