Skip to content

Commit

Permalink
[NO CHANGELOGS] [Add Funds Widget] Add Funds copy updates (#2304)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl authored Oct 15, 2024
1 parent 9b1227d commit 541dbc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ export const useError = (environment: Environment) => {

const errorConfig: Record<AddFundsErrorTypes, ErrorConfig> = {
[AddFundsErrorTypes.DEFAULT]: {
headingText: 'Unknown error',
subHeadingText: 'An unknown error occurred. Please try again later.',
headingText: 'Sorry, something went wrong. Please try again later.',
secondaryButtonText: 'Close',
onSecondaryButtonClick: closeWidget,
},
[AddFundsErrorTypes.INVALID_PARAMETERS]: {
headingText: 'Invalid parameters',
subHeadingText: 'The parameters provided are invalid. Please check again.',
subHeadingText: 'The widget parameters provided are invalid. Please check again.',
secondaryButtonText: 'Close',
onSecondaryButtonClick: closeWidget,
},
Expand Down Expand Up @@ -87,7 +86,7 @@ export const useError = (environment: Environment) => {
},
[AddFundsErrorTypes.WALLET_REJECTED]: {
headingText: 'Transaction rejected',
subHeadingText: 'The transaction was rejected. Please try again.',
subHeadingText: "You'll need to approve the transaction in your wallet to proceed.",
primaryButtonText: 'Retry',
onPrimaryButtonClick: goBackToAddFundsView,
secondaryButtonText: 'Close',
Expand All @@ -103,7 +102,7 @@ export const useError = (environment: Environment) => {
},
[AddFundsErrorTypes.WALLET_POPUP_BLOCKED]: {
headingText: "Browser's popup blocked",
subHeadingText: 'Please enable popups in your browser to proceed.',
subHeadingText: 'Please allow pop-ups in your browser to proceed.',
primaryButtonText: 'Retry',
onPrimaryButtonClick: goBackToAddFundsView,
secondaryButtonText: 'Close',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ export function Review({
showHandover(
EXECUTE_TXN_ANIMATION,
RiveStateMachineInput.WAITING,
'Waiting for transaction approval in wallet',
'Approve the transaction request to complete this transaction',
'Waiting for transaction confirmation in your wallet',
'Confirm the transaction request to complete this transaction',
);

const executeTxnReceipt = await execute(squid, changeableProvider, route);
Expand Down

0 comments on commit 541dbc5

Please sign in to comment.