Skip to content

Commit

Permalink
feat: prefer network name in warning msg
Browse files Browse the repository at this point in the history
  • Loading branch information
UrfinDeuce committed Aug 9, 2024
1 parent 491e58d commit a961598
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push-docker-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
push: true
tags: gatewayfm/zkevm-bridge-ui-generic:1.0.2
tags: gatewayfm/zkevm-bridge-ui-generic:1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
POLYGON_TERMS_AND_CONDITIONS_URL,
POLYGON_ZKEVM_RISK_DISCLOSURES_URL,
} from "src/constants";
import { useEnvContext } from "src/contexts/env.context";

import { FormData } from "src/domain";
import { useDepositWarningModalStyles } from "src/views/home/components/deposit-warning-modal/deposit-warning-modal.styles";
Expand All @@ -26,6 +27,8 @@ export const DepositWarningModal: FC<DepositWarningModalProps> = ({
onCancel,
}) => {
const classes = useDepositWarningModalStyles();
const env = useEnvContext();
const networkName = env?.networkName;

return (
<Portal>
Expand All @@ -35,8 +38,11 @@ export const DepositWarningModal: FC<DepositWarningModalProps> = ({
Warning
</Typography>
<Typography className={classes.warningText} type="body1">
You are about to transfer tokens using the Polygon zkEVM Mainnet Beta. There are risks
associated with your use of the Mainnet Beta here. You agree to the{" "}
You are about to transfer tokens using the{" "}
{networkName
? networkName + " Beta (powered by Polygon)"
: "Polygon zkEVM Mainnet Beta"}
. There are risks associated with your use of the Mainnet Beta here. You agree to the{" "}
<ExternalLink href={POLYGON_TERMS_AND_CONDITIONS_URL}>Terms of Use</ExternalLink>,
including{" "}
<ExternalLink href={POLYGON_ZKEVM_RISK_DISCLOSURES_URL}>those risks</ExternalLink>, and
Expand Down

0 comments on commit a961598

Please sign in to comment.