Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new chains to Homepage marquee #240

Merged
merged 4 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## What it solves

Resolves #

## How this PR fixes it
Binary file added public/images/chainsLogos/PolygonZkEVMLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chainsLogos/ZkSyncEraLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/common/Networks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const NetworksRow = ({ networksRow, chainsData }: { networksRow: NetworkChipProp
{networksRow.map(({ name, icon, textColor, backgroundColor, isNew }, i) => {
const chainData = chainsData?.find((chain) => chain.chainName === name)
const chainColors = {
textColor: chainData?.textColor || textColor || defaultThemeColors.textColor,
backgroundColor: chainData?.backgroundColor || backgroundColor || defaultThemeColors.backgroundColor,
textColor: textColor || chainData?.textColor || defaultThemeColors.textColor,
backgroundColor: backgroundColor || chainData?.backgroundColor || defaultThemeColors.backgroundColor,
}
return <NetworkChip key={`${name}_${i}`} icon={icon} name={name} isNew={isNew} {...chainColors} />
})}
Expand Down
21 changes: 19 additions & 2 deletions src/content/home.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@
"alt": "Arbitrum logo"
}
},
{
"name": "zkSync Era Mainnet",
"icon": {
"src": "/images/chainsLogos/ZkSyncEraLogo.png",
"alt": "zkSync Era logo"
},
"textColor": "#000000",
"backgroundColor": "#FFFFFF",
"isNew": true
},
{
"name": "Polygon",
"icon": {
Expand Down Expand Up @@ -104,13 +114,20 @@
"alt": "Arbitrum logo"
}
},
{
"name": "Polygon zkEVM",
"icon": {
"src": "/images/chainsLogos/PolygonZkEVMLogo.png",
"alt": "Polygon zkEVM logo"
},
"isNew": true
},
{
"name": "Celo",
"icon": {
"src": "/images/chainsLogos/CeloLogo.png",
"alt": "Celo logo"
},
"isNew": true
}
}
],
"component": "common/Networks"
Expand Down
Loading