forked from dexlab-io/dexpay-pos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New tab, routing and navigation (dexlab-io#78)
Created a new tab in desktop mode called "Tip", where the Tip component will be displayed in a modal, just like the Payment modal. Also, created routing so that it is possible to navigate to /address/:id/tip and make this modal open, both from desktop and from mobile. Finally, added a "lastTab" state entry so the dapp knows which tab to open once it is closed by a user. Created a dummy QR code inside the Tip modal.
- Loading branch information
Emilio Silva Schlenker
committed
Feb 28, 2019
1 parent
e7fb8b8
commit 82ddcd3
Showing
5 changed files
with
46 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React, { Component } from 'react'; | ||
import Modal from 'react-responsive-modal'; | ||
import QrCode from '../../Payment/components/QrCode'; | ||
|
||
class Tip extends Component { | ||
render() { | ||
return ( | ||
<Modal open={true} onClose={this.props.onClose}> | ||
<QrCode valueCrypto="0" /> | ||
</Modal> | ||
); | ||
}; | ||
}; | ||
|
||
export default Tip; |
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