From 6733202519eeca00fb4001169902fa10240927fe Mon Sep 17 00:00:00 2001 From: Alfredo Bonilla Date: Fri, 21 Feb 2025 07:48:55 -0600 Subject: [PATCH] feat: update wallet flow --- apps/web/public/locales/en/common.json | 5 +++-- apps/web/public/locales/es/common.json | 3 ++- apps/web/public/locales/pt/common.json | 1 + .../web/src/app/_components/features/WalletConnectFlow.tsx | 5 ----- .../src/app/_components/features/WalletConnectionCheck.tsx | 7 +------ 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/apps/web/public/locales/en/common.json b/apps/web/public/locales/en/common.json index 4722d33..3ccc0d9 100644 --- a/apps/web/public/locales/en/common.json +++ b/apps/web/public/locales/en/common.json @@ -2,14 +2,15 @@ "welcome_to": "Welcome to", "sign": "Sign", "disconnect": "Disconnect", - "connect_wallet": "Connect {{walletName}}", + "connect_wallet": "Connect your wallet", "argent_x": "Argent X", + "argent_mobile": "Argent Mobile", "error_signing_message": "Error signing the message", "tag_new": "New", "welcome_coffee_lover": "Welcome Coffee Lover", "featured": "Featured", - "find_best_coffee": "Find Best Coffee", + "find_best_coffee": "Find the Best Coffee", "popular": "Popular", "discover_unique_blends": "Discover Unique Blends", diff --git a/apps/web/public/locales/es/common.json b/apps/web/public/locales/es/common.json index 44de9ab..8abf835 100644 --- a/apps/web/public/locales/es/common.json +++ b/apps/web/public/locales/es/common.json @@ -2,8 +2,9 @@ "welcome_to": "Bienvenido a", "sign": "Firmar", "disconnect": "Desconectar", - "connect_wallet": "Conectar {{walletName}}", + "connect_wallet": "Conectar billetera", "argent_x": "Argent X", + "argent_mobile": "Argent Mobile", "error_signing_message": "Error al firmar el mensaje", "tag_new": "Nuevo", diff --git a/apps/web/public/locales/pt/common.json b/apps/web/public/locales/pt/common.json index a050b1b..f2fcf4d 100644 --- a/apps/web/public/locales/pt/common.json +++ b/apps/web/public/locales/pt/common.json @@ -4,6 +4,7 @@ "disconnect": "Desconectar", "connect_wallet": "Conectar {{walletName}}", "argent_x": "Argent X", + "argent_mobile": "Argent Mobile", "error_signing_message": "Erro ao assinar a mensagem", "tag_new": "Novo", diff --git a/apps/web/src/app/_components/features/WalletConnectFlow.tsx b/apps/web/src/app/_components/features/WalletConnectFlow.tsx index b71566d..2e57d7b 100644 --- a/apps/web/src/app/_components/features/WalletConnectFlow.tsx +++ b/apps/web/src/app/_components/features/WalletConnectFlow.tsx @@ -67,11 +67,6 @@ export default function WalletConnectFlow() { return (
-
- - {t("connect_your_wallet")} - -
{isAutoConnecting && (
diff --git a/apps/web/src/app/_components/features/WalletConnectionCheck.tsx b/apps/web/src/app/_components/features/WalletConnectionCheck.tsx index d2a51f3..d69d617 100644 --- a/apps/web/src/app/_components/features/WalletConnectionCheck.tsx +++ b/apps/web/src/app/_components/features/WalletConnectionCheck.tsx @@ -3,7 +3,6 @@ import { useAccount } from "@starknet-react/core"; import { useSession } from "next-auth/react"; import { useEffect, useState } from "react"; -import { toast } from "react-hot-toast"; import { useTranslation } from "react-i18next"; import WalletConnectFlow from "./WalletConnectFlow"; @@ -24,11 +23,10 @@ export default function WalletConnectionCheck({ // and we're not in a loading state if (status === "authenticated" && session && !address) { setShowConnectPrompt(true); - toast.error(t("please_connect_wallet")); } else { setShowConnectPrompt(false); } - }, [session, address, status, t]); + }, [session, address, status]); // Don't show prompt during loading/transitioning states if (status === "loading") { @@ -42,9 +40,6 @@ export default function WalletConnectionCheck({

{t("connect_wallet")}

-

- {t("connect_wallet_description")} -