Skip to content

Commit e1badca

Browse files
authored
Merge pull request #14401 from ethereum/removeDevconGrantsBanner
remove devcon banner and fix broken imageURL for rss feed
2 parents 378fd29 + 23a5ab1 commit e1badca

File tree

5 files changed

+37
-38
lines changed

5 files changed

+37
-38
lines changed

src/components/DevconGrantsBanner.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/components/EventCard.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ const EventCard: React.FC<EventCardProps> = ({
4848
<img
4949
src={imageUrl}
5050
alt={title}
51+
onError={(e) => {
52+
e.currentTarget.onerror = null
53+
e.currentTarget.src = EventFallback.src
54+
}}
5155
className="max-h-[224px] w-full object-cover xl:h-[124px]"
5256
/>
5357
) : (

src/data/wallets/wallet-data.ts

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import BridgeWalletImage from "@/public/images/wallets/bridge.png"
1313
import ClearWallet from "@/public/images/wallets/clearwallet.png"
1414
import CoinbaseImage from "@/public/images/wallets/coinbase.png"
1515
import CoinWalletImage from "@/public/images/wallets/coinwallet.png"
16-
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
1716
import CtrlWalletImage from "@/public/images/wallets/ctrl.png"
17+
import CypherockX1Image from "@/public/images/wallets/cypherockx1.png"
1818
import EnkryptImage from "@/public/images/wallets/enkrypt.png"
1919
import ExodusImage from "@/public/images/wallets/exodus.png"
2020
import FoxWalletImage from "@/public/images/wallets/foxwallet.png"
@@ -1546,7 +1546,20 @@ export const walletsData: WalletData[] = [
15461546
twGradiantBrandColor: "from-[#ffffff]",
15471547
url: "https://web3.bitget.com/",
15481548
active_development_team: true,
1549-
languages_supported: ["en", "zh","zh-tw", "ko", "ja", "vi", "tr", "es", "id", "hi", "ar", "pt"],
1549+
languages_supported: [
1550+
"en",
1551+
"zh",
1552+
"zh-tw",
1553+
"ko",
1554+
"ja",
1555+
"vi",
1556+
"tr",
1557+
"es",
1558+
"id",
1559+
"hi",
1560+
"ar",
1561+
"pt",
1562+
],
15501563
twitter: "https://twitter.com/BitgetWallet",
15511564
discord: "https://discord.gg/bitget-wallet",
15521565
reddit: "",
@@ -2102,7 +2115,8 @@ export const walletsData: WalletData[] = [
21022115
last_updated: "2024-08-24",
21032116
name: "Cypherock X1",
21042117
image: CypherockX1Image,
2105-
brand_color: "#e9b873",
2118+
twBackgroundColor: "bg-[#e9b873]",
2119+
twGradiantBrandColor: "from-[#e9b873]",
21062120
url: "https://www.cypherock.com/",
21072121
active_development_team: true,
21082122
languages_supported: ["en", "de", "zh", "ar", "id"],
@@ -2140,8 +2154,8 @@ export const walletsData: WalletData[] = [
21402154
social_recovery: false,
21412155
onboard_documentation: "https://www.cypherock.com",
21422156
documentation: "https://github.com/Cypherock/x1_wallet_firmware",
2143-
},
2144-
{
2157+
},
2158+
{
21452159
last_updated: "2024-10-31",
21462160
name: "Clear Wallet",
21472161
image: ClearWallet,
@@ -2177,7 +2191,7 @@ export const walletsData: WalletData[] = [
21772191
layer_2: true,
21782192
gas_fee_customization: true,
21792193
ens_support: false,
2180-
erc_20_support: true,
2194+
erc_20_support: true,
21812195
buy_crypto: false,
21822196
withdraw_crypto: false,
21832197
multisig: false,

src/layouts/Static.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { MdPageContent, StaticFrontmatter } from "@/lib/interfaces"
77
import Breadcrumbs from "@/components/Breadcrumbs"
88
import Callout from "@/components/Callout"
99
import Contributors from "@/components/Contributors"
10-
import DevconGrantsBanner from "@/components/DevconGrantsBanner"
1110
import EnergyConsumptionChart from "@/components/EnergyConsumptionChart"
1211
import FeedbackCard from "@/components/FeedbackCard"
1312
import GlossaryDefinition from "@/components/Glossary/GlossaryDefinition"
@@ -94,7 +93,6 @@ export const StaticLayout = ({
9493
return (
9594
<div className="w-full">
9695
<TranslatathonBanner pathname={asPath} />
97-
<DevconGrantsBanner pathname={asPath} />
9896
<Flex
9997
className="mx-auto mb-16 w-full justify-between p-8 lg:pt-16"
10098
dir={contentNotTranslated ? "ltr" : "unset"}

src/pages/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,15 @@ const HomePage = ({
727727
>
728728
<CardBanner>
729729
{/* eslint-disable-next-line @next/next/no-img-element */}
730-
<img src={imgSrc} alt="" loading="lazy" />
730+
<img
731+
src={imgSrc}
732+
alt=""
733+
loading="lazy"
734+
onError={(e) => {
735+
e.currentTarget.onerror = null
736+
e.currentTarget.src = EventFallback.src
737+
}}
738+
/>
731739
</CardBanner>
732740
<CardContent>
733741
<CardTitle>{title}</CardTitle>
@@ -808,6 +816,10 @@ const HomePage = ({
808816
<img
809817
src={imageUrl}
810818
alt=""
819+
onError={(e) => {
820+
e.currentTarget.onerror = null
821+
e.currentTarget.src = EventFallback.src
822+
}}
811823
className="max-w-full object-cover object-center"
812824
loading="lazy"
813825
/>

0 commit comments

Comments
 (0)