diff --git a/apps/evm/.env.example b/apps/evm/.env.example index 5b545ccb8..2558a46ef 100644 --- a/apps/evm/.env.example +++ b/apps/evm/.env.example @@ -33,3 +33,6 @@ SENTRY_AUTH_TOKEN= # REDIS CACHE KV_REST_API_URL="https://communal-hen-23354.upstash.io" KV_REST_API_TOKEN= + + +NEXT_PUBLIC_TURNSTILE_SITE_KEY= \ No newline at end of file diff --git a/apps/evm/package.json b/apps/evm/package.json index 62473c0c5..fdc2a9e8e 100644 --- a/apps/evm/package.json +++ b/apps/evm/package.json @@ -28,6 +28,7 @@ "@gobob/utils": "workspace:^", "@lingui/core": "catalog:", "@lingui/react": "catalog:", + "@marsidev/react-turnstile": "^1.1.0", "@next/third-parties": "catalog:", "@react-aria/button": "catalog:", "@react-aria/focus": "catalog:", diff --git a/apps/evm/src/app/[lang]/nested-providers.tsx b/apps/evm/src/app/[lang]/nested-providers.tsx index 4a241915b..747d14e05 100644 --- a/apps/evm/src/app/[lang]/nested-providers.tsx +++ b/apps/evm/src/app/[lang]/nested-providers.tsx @@ -10,7 +10,7 @@ import { useLocalStorage } from 'usehooks-ts'; import { isAddressEqual } from 'viem'; import { useAccount, useAccountEffect, useChainId, useConfig, useSwitchChain } from 'wagmi'; -import { Footer, Header, Layout, ReceiveModal } from '@/components'; +import { Footer, Header, Layout, ReceiveModal, TurnstileModal } from '@/components'; import { ConnectProvider } from '@/connect-ui'; import { isClient, L2_CHAIN, LocalStorageKey } from '@/constants'; import { useBalances, useGetUser, useLogout, useTokens } from '@/hooks'; @@ -148,6 +148,7 @@ export function NestedProviders({ children }: PropsWithChildren) { {children}