-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NO CHANGELOG] [Add Funds Widget] Confirmation view (#2248)
- Loading branch information
1 parent
4984229
commit bdf1787
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
packages/checkout/widgets-lib/src/widgets/add-funds/views/Confirmation.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Link } from '@biom3/react'; | ||
import { Environment } from '@imtbl/config'; | ||
import { SimpleLayout } from '../../../components/SimpleLayout/SimpleLayout'; | ||
import { HeaderNavigation } from '../../../components/Header/HeaderNavigation'; | ||
import { AddFundsConfirmationData } from '../../../context/view-context/AddFundsViewContextTypes'; | ||
import { RocketHero } from '../../../components/Hero/RocketHero'; | ||
import { SimpleTextBody } from '../../../components/Body/SimpleTextBody'; | ||
|
||
interface ConfirmationProps { | ||
data: AddFundsConfirmationData; | ||
onCloseClick: () => void; | ||
} | ||
|
||
export function Confirmation({ data, onCloseClick }: ConfirmationProps) { | ||
return ( | ||
<SimpleLayout | ||
header={(<HeaderNavigation transparent onCloseButtonClick={onCloseClick} />)} | ||
heroContent={<RocketHero environment={Environment.PRODUCTION} />} | ||
floatHeader | ||
> | ||
<SimpleTextBody heading="Confirmation"> | ||
<Link | ||
size="small" | ||
rc={ | ||
<a href={`https://axelarscan.io/gmp/${data.transactionHash}`} /> | ||
} | ||
> | ||
<Link.Icon icon="ArrowForward" /> | ||
Go to Axelarscan for details | ||
</Link> | ||
</SimpleTextBody> | ||
</SimpleLayout> | ||
); | ||
} |