-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W token page - show only a message on testnet (#821)
* not show info on testnet * btn * imports * trying better solution * removed line * removed line * navigate removed * shortLabel added in cross-chain token activity * chains supported by protocols
- Loading branch information
1 parent
25c302d
commit 7017e80
Showing
10 changed files
with
209 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/components/organisms/SearchNotFound/OnlyMainnet/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { useEnvironment } from "src/context/EnvironmentContext"; | ||
import "../styles.scss"; | ||
|
||
const OnlyMainnet = () => { | ||
const { environment, setEnvironment } = useEnvironment(); | ||
|
||
return ( | ||
<div className="only-mainnet"> | ||
<p className="only-mainnet-text">Page available on Mainnet network.</p> | ||
|
||
<p className="only-mainnet-text"> | ||
To view on MAINNET click{" "} | ||
<button className="only-mainnet-text-link" onClick={() => setEnvironment("Mainnet")}> | ||
HERE | ||
</button> | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default OnlyMainnet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.