From 416d54a11832c27ed8de9304293a1f65acaaf4d4 Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Thu, 28 Nov 2024 08:58:47 +0100 Subject: [PATCH] Update content for connection alerts --- .../ConnectWalletModal/ConnectWalletAlert.tsx | 45 ++++++++++--------- dapp/src/theme/Alert.ts | 3 +- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx index bdbc3eeb1..553d9ff56 100644 --- a/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx +++ b/dapp/src/components/ConnectWalletModal/ConnectWalletAlert.tsx @@ -18,6 +18,24 @@ export enum ConnectionAlert { Default = "DEFAULT", } +function ContactSupport() { + return ( + + If the problem persists, contact{" "} + + Acre support + + . + + ) +} + const CONNECTION_ALERTS = { [ConnectionAlert.Rejected]: { title: "Wallet connection rejected.", @@ -26,33 +44,20 @@ const CONNECTION_ALERTS = { [ConnectionAlert.NotSupported]: { title: "Not supported.", description: - "Only Native SegWit, Nested SegWit or Legacy addresses supported at this time. Please try a different address or another wallet.", + "Only Native SegWit, Nested SegWit, or Legacy addresses are supported. Please use a compatible address or switch to a different wallet.", }, [ConnectionAlert.NetworkMismatch]: { - title: "Error!", + title: "Incorrect network detected in your wallet.", description: - "Incorrect network detected in your wallet. Please choose proper network and try again.", + "Please connect your wallet to the correct Bitcoin network and try again.", }, [ConnectionAlert.Default]: { - title: "Wallet connection error. Please try again.", - description: ( - - If the problem persists, contact{" "} - - Acre support - - - ), + title: "Wallet connection failed. Please try again.", + description: , }, [ConnectionAlert.InvalidSIWWSignature]: { - title: "Invalid Sign In With Wallet signature", - description: "We encountered an error. Please try again.", + title: "Invalid sign-in signature. Please try again.", + description: , }, } diff --git a/dapp/src/theme/Alert.ts b/dapp/src/theme/Alert.ts index 8b4aa91f9..005dbb32f 100644 --- a/dapp/src/theme/Alert.ts +++ b/dapp/src/theme/Alert.ts @@ -12,8 +12,7 @@ const baseStyle = multiStyleConfig.definePartsStyle({ borderWidth: 1, borderStyle: "solid", borderColor: $borderColor.reference, - px: 5, - py: 5, + p: 4, rounded: "xl", }, description: {