Browse Source

Receive modal: put Track component inside instead of outside

master
meriadec 7 years ago
parent
commit
e5a9f43d32
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 28
      src/components/modals/Receive/index.js

28
src/components/modals/Receive/index.js

@ -1,6 +1,6 @@
// @flow
import React, { PureComponent, Fragment } from 'react'
import React, { PureComponent } from 'react'
import { compose } from 'redux'
import { connect } from 'react-redux'
import { translate } from 'react-i18next'
@ -187,21 +187,19 @@ class ReceiveModal extends PureComponent<Props, State> {
preventBackdropClick={isModalLocked}
onBeforeOpen={this.handleBeforeOpenModal}
render={({ onClose }) => (
<Fragment>
<Stepper
title={t('app:receive.title')}
initialStepId={stepId}
onStepChange={this.handleStepChange}
onClose={onClose}
steps={this.STEPS}
disabledSteps={disabledSteps}
errorSteps={errorSteps}
{...addtionnalProps}
>
<Track onUnmount event="CloseModalReceive" />
<Stepper
title={t('app:receive.title')}
initialStepId={stepId}
onStepChange={this.handleStepChange}
onClose={onClose}
steps={this.STEPS}
disabledSteps={disabledSteps}
errorSteps={errorSteps}
{...addtionnalProps}
>
<SyncSkipUnderPriority priority={100} />
</Stepper>
</Fragment>
<SyncSkipUnderPriority priority={100} />
</Stepper>
)}
/>
)

Loading…
Cancel
Save