Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update header URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
elias-garcia committed Feb 9, 2023
1 parent 917325f commit eb03782
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ export const HEZ_TOKEN_DECIMALS = 18;
export const TESTNET_API_HOSTNAME = "api.testnet.hermez.io";

export const MAINNET_API_HOSTNAME = "api.hermez.io";

export const WEBSITE_URL = "https://polygon.technology/solutions/polygon-zkevm";

export const TWITTER_URL = "https://twitter.com/0xPolygonZK";
13 changes: 9 additions & 4 deletions src/views/shared/header/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import Search from "../../search/search.view";
import { ReactComponent as Close } from "../../../images/icons/close.svg";
import { ReactComponent as Menu } from "../../../images/icons/menu.svg";

import { TESTNET_API_HOSTNAME, MAINNET_API_HOSTNAME } from "../../../constants";
import {
TESTNET_API_HOSTNAME,
MAINNET_API_HOSTNAME,
WEBSITE_URL,
TWITTER_URL,
} from "../../../constants";

function Header() {
const classes = useHeaderStyles();
Expand Down Expand Up @@ -91,12 +96,12 @@ function Header() {
})}
>
<a
href="http://hermez.io/"
href={WEBSITE_URL}
target="_blank"
rel="noopener noreferrer"
className={classes.link}
>
Go to hermez.io
Polygon zkEVM website
</a>
<a
href={
Expand All @@ -114,7 +119,7 @@ function Header() {
Registered Tokens
</a>
<a
href="https://twitter.com/0xPolygonHermez"
href={TWITTER_URL}
target="_blank"
rel="noopener noreferrer"
className={classes.link}
Expand Down
3 changes: 2 additions & 1 deletion src/views/shared/header/header.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const useMainHeaderStyles = createUseStyles((theme) => ({
marginBottom: theme.spacing(2),
},
menuButtons: {
display: "flex",
alignItems: "center",
marginTop: theme.spacing(1.5),
[theme.breakpoints.sm]: {
marginTop: 0,
Expand All @@ -47,7 +49,6 @@ const useMainHeaderStyles = createUseStyles((theme) => ({
links: {
display: "flex",
alignItems: "center",
marginTop: theme.spacing(1.5),
},
link: {
display: "flex",
Expand Down

0 comments on commit eb03782

Please sign in to comment.