-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f67b98
commit 9a54bb5
Showing
17 changed files
with
933 additions
and
1,138 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const PlayIcon = ({ style, width }: { style?: any; width: number }) => ( | ||
<svg | ||
style={style} | ||
width={width} | ||
height={width} | ||
viewBox="0 0 24 24" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M8.75 17.5V6.5L17.75 12L8.75 17.5Z" stroke="currentColor" strokeWidth="1.5" /> | ||
</svg> | ||
); | ||
|
||
export default PlayIcon; |
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
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
17 changes: 17 additions & 0 deletions
17
src/pages/Tx/Information/Summary/Redeem/RedeemModalError.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,17 @@ | ||
import { AlertTriangle } from "src/icons/generic"; | ||
|
||
const RedeemModalError = ({ error }: { error: string }) => ( | ||
<div className="redeem-modal"> | ||
<div className="redeem-modal-error-icon"> | ||
<AlertTriangle width={80} /> | ||
</div> | ||
|
||
<div className="redeem-modal-content"> | ||
<div className="redeem-modal-content-title">Transaction failed.</div> | ||
|
||
<div className="redeem-modal-content-info">{error}</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default RedeemModalError; |
22 changes: 22 additions & 0 deletions
22
src/pages/Tx/Information/Summary/Redeem/RedeemModalLoading.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,22 @@ | ||
import { Loader } from "src/components/atoms"; | ||
|
||
const RedeemModalLoading = ({ | ||
shouldShowDisclaimer = false, | ||
}: { | ||
shouldShowDisclaimer: boolean; | ||
}) => ( | ||
<div className="redeem-modal"> | ||
<Loader /> | ||
|
||
{shouldShowDisclaimer && ( | ||
<div className="redeem-modal-content"> | ||
<div className="redeem-modal-content-title"> | ||
<p>Transaction in progress, please do not clone or refresh this modal.</p> | ||
<p>This will only take a moment.</p> | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
|
||
export default RedeemModalLoading; |
19 changes: 19 additions & 0 deletions
19
src/pages/Tx/Information/Summary/Redeem/RedeemModalSuccess.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,19 @@ | ||
import { CheckCircle2 } from "src/icons/generic"; | ||
|
||
const RedeemModalSuccess = () => ( | ||
<div className="redeem-modal"> | ||
<div className="redeem-modal-success-icon"> | ||
<CheckCircle2 width={80} /> | ||
</div> | ||
|
||
<div className="redeem-modal-content" style={{ color: "var(--color-white)" }}> | ||
<div className="redeem-modal-content-title"> | ||
The tokens are now in the destination wallet. | ||
</div> | ||
|
||
<div className="redeem-modal-content-info">Transaction will be updated shortly.</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default RedeemModalSuccess; |
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
Oops, something went wrong.