|
@ -62,7 +62,6 @@ type Props = { |
|
|
account: Account, |
|
|
account: Account, |
|
|
accounts: Account[], |
|
|
accounts: Account[], |
|
|
canShowMore: boolean, |
|
|
canShowMore: boolean, |
|
|
onAccountClick?: Function, |
|
|
|
|
|
openModal: Function, |
|
|
openModal: Function, |
|
|
t: T, |
|
|
t: T, |
|
|
withAccount?: boolean, |
|
|
withAccount?: boolean, |
|
@ -78,7 +77,6 @@ const initialState = { |
|
|
} |
|
|
} |
|
|
export class OperationsList extends PureComponent<Props, State> { |
|
|
export class OperationsList extends PureComponent<Props, State> { |
|
|
static defaultProps = { |
|
|
static defaultProps = { |
|
|
onAccountClick: noop, |
|
|
|
|
|
withAccount: false, |
|
|
withAccount: false, |
|
|
canShowMore: false, |
|
|
canShowMore: false, |
|
|
} |
|
|
} |
|
@ -93,7 +91,7 @@ export class OperationsList extends PureComponent<Props, State> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
render() { |
|
|
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 { nbToShow } = this.state |
|
|
|
|
|
|
|
|
const totalOperations = accounts |
|
|
const totalOperations = accounts |
|
@ -135,7 +133,6 @@ export class OperationsList extends PureComponent<Props, State> { |
|
|
<Operation |
|
|
<Operation |
|
|
account={account} |
|
|
account={account} |
|
|
key={op.id} |
|
|
key={op.id} |
|
|
onAccountClick={onAccountClick} |
|
|
|
|
|
onOperationClick={this.handleClickOperation} |
|
|
onOperationClick={this.handleClickOperation} |
|
|
op={op} |
|
|
op={op} |
|
|
t={t} |
|
|
t={t} |
|
|