@ -69,6 +69,7 @@ import { getEnvironmentType } from '../../../app/scripts/lib/util';
import ConfirmationPage from '../confirmation' ;
import ConfirmationPage from '../confirmation' ;
import OnboardingFlow from '../onboarding-flow/onboarding-flow' ;
import OnboardingFlow from '../onboarding-flow/onboarding-flow' ;
import QRHardwarePopover from '../../components/app/qr-hardware-popover' ;
import QRHardwarePopover from '../../components/app/qr-hardware-popover' ;
import { SEND _STAGES } from '../../ducks/send' ;
export default class Routes extends Component {
export default class Routes extends Component {
static propTypes = {
static propTypes = {
@ -95,6 +96,7 @@ export default class Routes extends Component {
browserEnvironmentOs : PropTypes . string ,
browserEnvironmentOs : PropTypes . string ,
browserEnvironmentBrowser : PropTypes . string ,
browserEnvironmentBrowser : PropTypes . string ,
theme : PropTypes . string ,
theme : PropTypes . string ,
sendStage : PropTypes . string ,
} ;
} ;
static contextTypes = {
static contextTypes = {
@ -242,6 +244,10 @@ export default class Routes extends Component {
) ;
) ;
}
}
onEditTransactionPage ( ) {
return this . props . sendStage === SEND _STAGES . EDIT ;
}
onSwapsPage ( ) {
onSwapsPage ( ) {
const { location } = this . props ;
const { location } = this . props ;
return Boolean (
return Boolean (
@ -359,6 +365,7 @@ export default class Routes extends Component {
onClick = { this . onAppHeaderClick }
onClick = { this . onAppHeaderClick }
disabled = {
disabled = {
this . onConfirmPage ( ) ||
this . onConfirmPage ( ) ||
this . onEditTransactionPage ( ) ||
( this . onSwapsPage ( ) && ! this . onSwapsBuildQuotePage ( ) )
( this . onSwapsPage ( ) && ! this . onSwapsBuildQuotePage ( ) )
}
}
/ >
/ >