|
|
@ -61,6 +61,15 @@ export default class AdvancedTab extends PureComponent { |
|
|
|
showLedgerTransportWarning: false, |
|
|
|
showLedgerTransportWarning: false, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showTestNetworksRef = React.createRef(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount() { |
|
|
|
|
|
|
|
if (window.location.hash.match(/show-testnets/u)) { |
|
|
|
|
|
|
|
this.showTestNetworksRef.current.scrollIntoView({ behavior: 'smooth' }); |
|
|
|
|
|
|
|
this.showTestNetworksRef.current.focus(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
renderMobileSync() { |
|
|
|
renderMobileSync() { |
|
|
|
const { t } = this.context; |
|
|
|
const { t } = this.context; |
|
|
|
const { history } = this.props; |
|
|
|
const { history } = this.props; |
|
|
@ -234,6 +243,7 @@ export default class AdvancedTab extends PureComponent { |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
|
|
|
|
ref={this.showTestNetworksRef} |
|
|
|
className="settings-page__content-row" |
|
|
|
className="settings-page__content-row" |
|
|
|
data-testid="advanced-setting-show-testnet-conversion" |
|
|
|
data-testid="advanced-setting-show-testnet-conversion" |
|
|
|
> |
|
|
|
> |
|
|
|