Skip to content

Commit 2137a8b

Browse files
authored
Merge pull request #11137 from ethereum/walletsTranslationPageBug
add conditional for buttons in hero based on language
2 parents 2e5166f + 3d38995 commit 2137a8b

File tree

1 file changed

+35
-21
lines changed

1 file changed

+35
-21
lines changed

src/pages-conditional/wallets.tsx

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -194,27 +194,41 @@ const WalletsPage = ({
194194
subtitle: t("page-wallets-subtitle"),
195195
image: getImage(data.hero)!,
196196
alt: t("page-wallets-alt"),
197-
buttons: [
198-
{
199-
to: "/wallets/find-wallet/",
200-
content: t("page-wallets-find-wallet-link"),
201-
matomo: {
202-
eventCategory: "wallet hero buttons",
203-
eventAction: "click",
204-
eventName: "find wallet",
205-
},
206-
},
207-
{
208-
to: `#${SIMULATOR_ID}`,
209-
content: "Interactive tutorial",
210-
matomo: {
211-
eventCategory: "wallet hero buttons",
212-
eventAction: "click",
213-
eventName: "interactive tutorial",
214-
},
215-
variant: "outline",
216-
},
217-
],
197+
// TODO: remove conditional after soft launch
198+
buttons:
199+
language === "en"
200+
? [
201+
{
202+
to: "/wallets/find-wallet/",
203+
content: t("page-wallets-find-wallet-link"),
204+
matomo: {
205+
eventCategory: "wallet hero buttons",
206+
eventAction: "click",
207+
eventName: "find wallet",
208+
},
209+
},
210+
{
211+
to: `#${SIMULATOR_ID}`,
212+
content: "Interactive tutorial",
213+
matomo: {
214+
eventCategory: "wallet hero buttons",
215+
eventAction: "click",
216+
eventName: "interactive tutorial",
217+
},
218+
variant: "outline",
219+
},
220+
]
221+
: [
222+
{
223+
to: "/wallets/find-wallet/",
224+
content: t("page-wallets-find-wallet-link"),
225+
matomo: {
226+
eventCategory: "wallet hero buttons",
227+
eventAction: "click",
228+
eventName: "find wallet",
229+
},
230+
},
231+
],
218232
}
219233

220234
return (

0 commit comments

Comments
 (0)