This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new success page for swaps (#65)
- Loading branch information
1 parent
fe59162
commit 72b4885
Showing
11 changed files
with
94 additions
and
71 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,37 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import injectSheet from 'react-jss'; | ||
import ReactConfetti from 'react-confetti'; | ||
import View from '../../components/view'; | ||
|
||
const confettiStyles = () => ({ | ||
wrapper: { | ||
flex: 1, | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
text: { | ||
fontSize: '30px', | ||
}, | ||
}); | ||
|
||
const StyledConfetti = ({ classes }) => ( | ||
<View className={classes.wrapper}> | ||
<ReactConfetti | ||
height={window.innerHeight} | ||
width={window.innerWidth} | ||
numberOfPieces={500} | ||
recycle={false} | ||
/> | ||
<span className={classes.text}>Viola! Swap successful!</span> | ||
</View> | ||
); | ||
|
||
StyledConfetti.propTypes = { | ||
classes: PropTypes.object.isRequired, | ||
}; | ||
|
||
const Confetti = injectSheet(confettiStyles)(StyledConfetti); | ||
|
||
export default Confetti; |
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
This file was deleted.
Oops, something went wrong.
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,6 +1,5 @@ | ||
import InputInvoice from './inputInvoice'; | ||
import SendTransaction from './sendTransaction'; | ||
import DownloadRefund from './downloadRefund'; | ||
import CompleteSwap from './completeSwap'; | ||
import SendTransaction from './sendTransaction'; | ||
|
||
export { InputInvoice, SendTransaction, DownloadRefund, CompleteSwap }; | ||
export { InputInvoice, SendTransaction, DownloadRefund }; |
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