File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { GetStaticProps } from "next"
2
2
import dynamic from "next/dynamic"
3
- import { useRouter } from "next/router "
3
+ import { useLocale } from "next-intl "
4
4
import { QueryClient , QueryClientProvider } from "@tanstack/react-query"
5
5
6
6
import { BasePageProps , Lang , Wallet } from "@/lib/types"
@@ -72,11 +72,11 @@ const StartWithCryptoPage = ({
72
72
} : {
73
73
newToCryptoWallets : Wallet [ ]
74
74
} ) => {
75
- const router = useRouter ( )
75
+ const locale = useLocale ( )
76
76
77
77
return (
78
78
< QueryClientProvider client = { queryClient } >
79
- < WalletProviders locale = { router . query . locale as string } >
79
+ < WalletProviders locale = { locale } >
80
80
< MainArticle className = "flex w-full flex-col items-center overflow-x-hidden" >
81
81
< PageMetadata
82
82
title = { "Start with crypto" }
You can’t perform that action at this time.
0 commit comments