-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle pending/failed transactions on submission page
- Loading branch information
Showing
6 changed files
with
62 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/browser-wallet/src/popup/popupX/pages/SubmittedTransaction/i18n/en.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const t = { | ||
success: { | ||
configureDelegation: { | ||
changeStake: "You've delegated", | ||
removed: "You've removed your delegated stake", | ||
updated: "You've updated your delegation settings", | ||
}, | ||
transfer: { | ||
label: "You've sent", | ||
}, | ||
}, | ||
pending: { | ||
label: 'Transaction in progress', | ||
}, | ||
failure: { | ||
label: 'The transaction failed: {{reason}}', | ||
}, | ||
detailsButton: 'Transaction details', | ||
continue: 'Return to account', | ||
}; | ||
|
||
export default t; |
8 changes: 7 additions & 1 deletion
8
packages/browser-wallet/src/popup/popupX/shared/Loader/Loader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
import clsx from 'clsx'; | ||
import React from 'react'; | ||
import { ClassName } from 'wallet-common-helpers'; | ||
|
||
export function LoaderInline({ className }: ClassName) { | ||
return <span className={clsx('loader-x', className)} />; | ||
} | ||
|
||
export default function Loader() { | ||
return ( | ||
<div className="loader-x-container"> | ||
<span className="loader-x" /> | ||
<LoaderInline /> | ||
</div> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/browser-wallet/src/popup/popupX/shared/Loader/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from './Loader'; | ||
export { default, LoaderInline } from './Loader'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters