bridge_ui: not-mainnet banner

Change-Id: I3cccb07e0aae2ff645f2d34d2c7c7e760021825b
This commit is contained in:
Evan Gray 2021-09-15 10:36:23 -04:00
parent 835d9bee7f
commit af893c7266
1 changed files with 8 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import NFT from "./components/NFT";
import Transfer from "./components/Transfer";
import Migration from "./components/Migration";
import wormholeLogo from "./icons/wormhole.svg";
import { ENABLE_NFT } from "./utils/consts";
import { CLUSTER, ENABLE_NFT } from "./utils/consts";
const useStyles = makeStyles((theme) => ({
appBar: {
@ -148,6 +148,13 @@ function App() {
</Hidden>
</Toolbar>
</AppBar>
{CLUSTER === "mainnet" ? null : (
<AppBar position="static" color="secondary">
<Typography style={{ textAlign: "center" }}>
Caution! You are using the {CLUSTER} build of this app.
</Typography>
</AppBar>
)}
<div className={classes.content}>
<Switch>
{ENABLE_NFT ? (