Browse Source

Remove click on operation account

master
meriadec 7 years ago
parent
commit
07409a8c14
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 7
      src/components/OperationsList/Operation.js
  2. 5
      src/components/OperationsList/index.js

7
src/components/OperationsList/Operation.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"

5
src/components/OperationsList/index.js

@ -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}

Loading…
Cancel
Save