diff --git a/examples/next/src/app/components/Connected.tsx b/examples/next/src/app/components/Connected.tsx index 72128bc5..0af86513 100644 --- a/examples/next/src/app/components/Connected.tsx +++ b/examples/next/src/app/components/Connected.tsx @@ -207,7 +207,7 @@ export const Connected = () => { - + Demos { options={[ ...pendingFeeOptionConfirmation?.options?.map(option => ({ label: ( - + - Fee (in {option.token.name}): {' '} - {formatUnits(BigInt(option.value), option.token.decimals || 0)} + Fee (in {option.token.name}): {' '} + {formatUnits(BigInt(option.value), option.token.decimals || 0)} Wallet balance for {option.token.name}: {' '} diff --git a/examples/react/src/components/Connected.tsx b/examples/react/src/components/Connected.tsx index c4a061ca..5bdb3c67 100644 --- a/examples/react/src/components/Connected.tsx +++ b/examples/react/src/components/Connected.tsx @@ -292,7 +292,7 @@ export const Connected = () => { - + Demos {/* { options={[ ...pendingFeeOptionConfirmation?.options?.map(option => ({ label: ( - + - Fee (in {option.token.name}): {' '} - {formatUnits(BigInt(option.value), option.token.decimals || 0)} + Fee (in {option.token.name}): {' '} + {formatUnits(BigInt(option.value), option.token.decimals || 0)} Wallet balance for {option.token.name}: {' '} diff --git a/packages/checkout/src/views/CheckoutSelection/component/OrderSummaryItem.tsx b/packages/checkout/src/views/CheckoutSelection/component/OrderSummaryItem.tsx index c26e6fe1..a5fe2a34 100644 --- a/packages/checkout/src/views/CheckoutSelection/component/OrderSummaryItem.tsx +++ b/packages/checkout/src/views/CheckoutSelection/component/OrderSummaryItem.tsx @@ -36,7 +36,7 @@ export const OrderSummaryItem = ({ contractAddress, tokenId, quantityRaw, chainI - + {collectionName} @@ -49,15 +49,15 @@ export const OrderSummaryItem = ({ contractAddress, tokenId, quantityRaw, chainI width: '180px' }} > - + {name} - {`#${tokenId}`} + {`#${tokenId}`} - - {`x${formatDisplay(balanceFormatted)}`} + + {`x${formatDisplay(balanceFormatted)}`} ) diff --git a/packages/checkout/src/views/CheckoutSelection/index.tsx b/packages/checkout/src/views/CheckoutSelection/index.tsx index 9d339a63..1fa2973e 100644 --- a/packages/checkout/src/views/CheckoutSelection/index.tsx +++ b/packages/checkout/src/views/CheckoutSelection/index.tsx @@ -107,7 +107,7 @@ export const CheckoutSelection = () => { {orderSummaryItems.length > 0 && ( <> - + Order summary { {displayCryptoCheckout && ( - + Total {isPending ? ( @@ -151,7 +151,7 @@ export const CheckoutSelection = () => { ) : ( - + {`${formatDisplay(requestAmount)} ${coinSymbol}`} @@ -210,7 +210,7 @@ export const CheckoutSelection = () => { {isPending ? ( ) : ( - + Balance: {`${formatDisplay(userBalance)} ${coinSymbol}`} )} diff --git a/packages/checkout/src/views/TransactionError.tsx b/packages/checkout/src/views/TransactionError.tsx index d800d0e6..96230247 100644 --- a/packages/checkout/src/views/TransactionError.tsx +++ b/packages/checkout/src/views/TransactionError.tsx @@ -26,8 +26,8 @@ export const TransactionError = () => { style={{ top: '50%', right: '50%', transform: 'translate(50%, -50%)' }} > - Error - + Error + An error occurred while processing the transaction. diff --git a/packages/checkout/src/views/TransactionSuccess.tsx b/packages/checkout/src/views/TransactionSuccess.tsx index 2f1a34d0..219e9b33 100644 --- a/packages/checkout/src/views/TransactionSuccess.tsx +++ b/packages/checkout/src/views/TransactionSuccess.tsx @@ -30,8 +30,8 @@ export const TransactionSuccess = () => { style={{ top: '50%', right: '50%', transform: 'translate(50%, -50%)' }} > - Success! - + Success! + Purchase was successful, item was sent to your wallet. {navigation.params.transactionHash && ( diff --git a/packages/kit/src/components/KitProvider/KitProvider.tsx b/packages/kit/src/components/KitProvider/KitProvider.tsx index f43845ae..51d20fb1 100644 --- a/packages/kit/src/components/KitProvider/KitProvider.tsx +++ b/packages/kit/src/components/KitProvider/KitProvider.tsx @@ -214,7 +214,7 @@ export const KitProvider = (props: KitConnectProviderProps) => { {pendingRequestConfirmation.type === 'signMessage' && ( - + Message diff --git a/packages/kit/src/components/NetworkBadge/NetworkBadge.tsx b/packages/kit/src/components/NetworkBadge/NetworkBadge.tsx index f6924f37..d79e1819 100644 --- a/packages/kit/src/components/NetworkBadge/NetworkBadge.tsx +++ b/packages/kit/src/components/NetworkBadge/NetworkBadge.tsx @@ -1,7 +1,6 @@ import { Box, NetworkImage, Text } from '@0xsequence/design-system' import React from 'react' -import { capitalize } from '../../utils/helpers' import { getNetwork, getNetworkBackgroundColor, getNetworkColor } from '../../utils/networks' interface NetworkBadgeProps { @@ -16,28 +15,28 @@ export const NetworkBadge = ({ chainId }: NetworkBadgeProps) => { return ( - {capitalize(network.title ?? network.name)} + {network.title ?? network.name} ) diff --git a/packages/kit/src/components/SequenceLogo/PoweredBySequence.tsx b/packages/kit/src/components/SequenceLogo/PoweredBySequence.tsx index 1e4f4e8d..da014333 100644 --- a/packages/kit/src/components/SequenceLogo/PoweredBySequence.tsx +++ b/packages/kit/src/components/SequenceLogo/PoweredBySequence.tsx @@ -19,7 +19,7 @@ export const PoweredBySequence = () => { cursor="pointer" opacity={{ hover: '80' }} > - + Powered by Sequence diff --git a/packages/kit/src/components/TxnDetails/TxnDetails.tsx b/packages/kit/src/components/TxnDetails/TxnDetails.tsx index 214ca05b..cc2747e8 100644 --- a/packages/kit/src/components/TxnDetails/TxnDetails.tsx +++ b/packages/kit/src/components/TxnDetails/TxnDetails.tsx @@ -154,7 +154,7 @@ const TransferItemInfo = ({ address, transferProps, chainId }: TransferItemInfoP {toAddress !== undefined && ( - + To { {awardItemProps.to !== undefined && ( - + To { return ( { > - {capitalize(network.title ?? network.name)} + {network.title ?? network.name} ) diff --git a/packages/wallet/src/shared/SendItemInfo.tsx b/packages/wallet/src/shared/SendItemInfo.tsx index 3ecbce14..f02f5f67 100644 --- a/packages/wallet/src/shared/SendItemInfo.tsx +++ b/packages/wallet/src/shared/SendItemInfo.tsx @@ -57,7 +57,7 @@ export const SendItemInfo = ({ ) : ( - + )} diff --git a/packages/wallet/src/shared/TransactionHistoryList/TransactionHistoryItem.tsx b/packages/wallet/src/shared/TransactionHistoryList/TransactionHistoryItem.tsx index e312a0a9..b0b923b6 100644 --- a/packages/wallet/src/shared/TransactionHistoryList/TransactionHistoryItem.tsx +++ b/packages/wallet/src/shared/TransactionHistoryList/TransactionHistoryItem.tsx @@ -103,7 +103,7 @@ export const TransactionHistoryItem = ({ transaction }: TransactionHistoryItemPr textColor = vars.colors.positive } - return {`${sign}${amount} ${symbol}`} + return {`${sign}${amount} ${symbol}`} } interface GetTransfer { @@ -119,14 +119,14 @@ export const TransactionHistoryItem = ({ transaction }: TransactionHistoryItemPr {getTransactionIconByType(transfer.transferType)} - + {getTansactionLabelByType(transfer.transferType)} {isFirstItem && ( - + {date} @@ -159,7 +159,7 @@ export const TransactionHistoryItem = ({ transaction }: TransactionHistoryItemPr {isPending && } {fiatConversionRate && ( - + {`${fiatCurrency.sign}${(Number(amountValue) * fiatConversionRate * conversionRate).toFixed(2)}`} )} diff --git a/packages/wallet/src/shared/TransactionHistoryList/index.tsx b/packages/wallet/src/shared/TransactionHistoryList/index.tsx index a91766f9..da0a11dc 100644 --- a/packages/wallet/src/shared/TransactionHistoryList/index.tsx +++ b/packages/wallet/src/shared/TransactionHistoryList/index.tsx @@ -99,7 +99,7 @@ export const TransactionHistoryList = ({ transactions, isPending, isFetchingNext const TimeLabel = ({ label }: TimeLabelProps) => { return ( - + {label} diff --git a/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx b/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx index 2cd31394..4c0fcac5 100644 --- a/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx +++ b/packages/wallet/src/shared/WalletHeader/components/WalletDropdownContent.tsx @@ -87,7 +87,7 @@ export const WalletDropdownContent = forwardRef(({ setOpenWalletDropdown }: Wall - + {formatAddress(address || '')} diff --git a/packages/wallet/src/views/CoinDetails/Skeleton.tsx b/packages/wallet/src/views/CoinDetails/Skeleton.tsx index caec2e3d..0075d831 100644 --- a/packages/wallet/src/views/CoinDetails/Skeleton.tsx +++ b/packages/wallet/src/views/CoinDetails/Skeleton.tsx @@ -19,7 +19,7 @@ export const CoinDetailsSkeleton = ({ chainId }: CoinDetailsSkeletonProps) => { - + Balance diff --git a/packages/wallet/src/views/CoinDetails/index.tsx b/packages/wallet/src/views/CoinDetails/index.tsx index 6a24d007..31567393 100644 --- a/packages/wallet/src/views/CoinDetails/index.tsx +++ b/packages/wallet/src/views/CoinDetails/index.tsx @@ -1,4 +1,4 @@ -import { Box, Button, Image, SendIcon, Text } from '@0xsequence/design-system' +import { Box, Button, SendIcon, Text, TokenImage } from '@0xsequence/design-system' import { getNativeTokenInfoByChainId, useExchangeRate, @@ -97,19 +97,19 @@ export const CoinDetails = ({ contractAddress, chainId }: CoinDetailsProps) => { - logo - + + {name} - + Balance - {`${balanceDisplayed} ${symbol}`} - {`${fiatCurrency.sign}${coinBalanceFiat}`} + {`${balanceDisplayed} ${symbol}`} + {`${fiatCurrency.sign}${coinBalanceFiat}`}