Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Icon } from "../../../assets/icon";
import { useGlobalTheme } from "../../../providers/ui-context-provider";
import {
useGlobalTheme,
useLocale,
} from "../../../providers/ui-context-provider";
import Text from "../../base/Text";
import { FlexAlignType, StyleSheet, View } from "react-native";

Expand All @@ -14,13 +17,20 @@ interface ConnectWalletHeaderProps {

export const ConnectWalletHeader = ({
headerText,
subHeaderText = "Connecting your wallet",
subHeaderText,
alignHeader = "center",
middleContent,
onClose,
onBackPress,
}: ConnectWalletHeaderProps) => {
const l = useLocale();
const theme = useGlobalTheme();

subHeaderText =
subHeaderText !== undefined
? subHeaderText
: l.connecting_wallet.connecting_your_wallet;

return (
<>
<View style={styles.header}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ export const SmartWalletFlow = ({
<View style={styles.connectingContainer}>
<>
<Text variant="header" mt="lg" textAlign="center">
{mismatch ? "Network Mismatch" : "Connecting..."}
{mismatch
? l.smart_wallet.network_mistmach
: `${l.smart_wallet.connecting} ...`}
</Text>
{mismatch ? (
<Text variant="bodySmallSecondary" mt="lg" textAlign="center">
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/src/evm/i18n/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export const _en = {
smart_wallet: {
switch_to_smart: "Switch to Smart Wallet",
switch_to_personal: "Switch to Personal Wallet",
network_mistmach: "Network Mismatch",
connecting: "Connecting",
},
embedded_wallet: {
request_new_code: "Request new code",
Expand Down