Skip to content

Commit 0883dcf

Browse files
committed
feat: create new "/start" page for Ethereum onboarding
1 parent c4995f4 commit 0883dcf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/components/Nav/useNav.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export const useNav = () => {
125125
{
126126
label: t("nav-start-with-crypto-title"),
127127
description: t("nav-start-with-crypto-description"),
128-
href: "/start-with-crypto/",
128+
href: "/start/",
129129
},
130130
{
131131
label: t("nav-find-wallet-label"),

src/lib/utils/translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const getRequiredNamespacesForPath = (relativePath: string) => {
181181
requiredNamespaces = [...requiredNamespaces, "table"]
182182
}
183183

184-
if (path.startsWith("/start-with-crypto/")) {
184+
if (path.startsWith("/start/")) {
185185
requiredNamespaces = [...requiredNamespaces]
186186
}
187187

src/pages/[locale]/start-with-crypto/index.tsx renamed to src/pages/[locale]/start/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const getStaticProps = (async ({ params }) => {
3535
lastDeployDate
3636
)
3737

38-
const requiredNamespaces = getRequiredNamespacesForPage("/start-with-crypto")
38+
const requiredNamespaces = getRequiredNamespacesForPage("/start")
3939

4040
const contentNotTranslated = !existsNamespace(
4141
locale! as string,
@@ -89,6 +89,7 @@ const StartWithCryptoPage = () => {
8989
Billions can’t open bank accounts or freely use their money.
9090
Ethereum’s financial system is always open and unbiased.
9191
</p>
92+
{/* TODO: Add share button */}
9293
<div className="flex w-full md:w-auto">
9394
<ButtonLink
9495
href="/start-with-crypto/onboarding-guide"

0 commit comments

Comments
 (0)