Skip to content

Commit

Permalink
Merge branch 'swap-skip-go' into release-v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon committed Jan 27, 2025
2 parents 7a57bc8 + d9be4f9 commit 4619a91
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -600,11 +600,13 @@ class App extends React.Component {
</Nav.Link>
</div>
)}
<div className="nav-item px-2 text-center">
<Nav.Link eventKey="swap">
<CurrencyExchange className="mb-1 me-1" /><span className="d-none d-sm-inline"> Swap</span>
</Nav.Link>
</div>
{!this.props.directory.testnet && (
<div className="nav-item px-2 text-center">
<Nav.Link eventKey="swap">
<CurrencyExchange className="mb-1 me-1" /><span className="d-none d-sm-inline"> Swap</span>
</Nav.Link>
</div>
)}
</>
)}
</Nav>
Expand Down Expand Up @@ -813,7 +815,7 @@ class App extends React.Component {
grantQuerySupport={this.state.grantQuerySupport}
/>
)}
{this.props.active === 'swap' && (
{this.props.active === 'swap' && !this.props.directory.testnet && (
<Swap
networks={this.props.networks}
network={this.props.network}
Expand Down

0 comments on commit 4619a91

Please sign in to comment.