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 = { type Props = {
account: Account, account: Account,
currencySettings: CurrencySettings, currencySettings: CurrencySettings,
onAccountClick: (account: Account) => void,
onOperationClick: ({ operation: Operation, account: Account, marketColor: string }) => void, onOperationClick: ({ operation: Operation, account: Account, marketColor: string }) => void,
marketIndicator: string, marketIndicator: string,
t: T, t: T,
@ -100,7 +99,6 @@ type Props = {
class OperationComponent extends PureComponent<Props> { class OperationComponent extends PureComponent<Props> {
static defaultProps = { static defaultProps = {
onAccountClick: noop,
onOperationClick: noop, onOperationClick: noop,
withAccount: false, withAccount: false,
} }
@ -109,7 +107,6 @@ class OperationComponent extends PureComponent<Props> {
const { const {
account, account,
currencySettings, currencySettings,
onAccountClick,
onOperationClick, onOperationClick,
t, t,
op, op,
@ -164,10 +161,6 @@ class OperationComponent extends PureComponent<Props> {
horizontal horizontal
flow={2} flow={2}
style={{ cursor: 'pointer' }} style={{ cursor: 'pointer' }}
onClick={e => {
e.stopPropagation()
onAccountClick(account)
}}
> >
<Box <Box
alignItems="center" alignItems="center"

5
src/components/OperationsList/index.js

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

Loading…
Cancel
Save