-
Notifications
You must be signed in to change notification settings - Fork 6
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
663f18d
commit a442763
Showing
6 changed files
with
150 additions
and
29 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,43 @@ | ||
import React, { Component } from 'react'; | ||
import BitcoinCash from '../utilities/BitcoinCash'; | ||
|
||
class ModalDisplay extends Component { | ||
constructor(props) { | ||
super(props); | ||
} | ||
|
||
hideKey() { | ||
this.props.hideKey(); | ||
} | ||
|
||
render() { | ||
|
||
let address; | ||
if(this.props.wallet.displayCashaddr) { | ||
address = BitcoinCash.toCashAddress(this.props.address); | ||
} else { | ||
address = this.props.address; | ||
} | ||
|
||
return ( | ||
<div id="keyModal" className="modal"> | ||
<div className="modal-content"> | ||
<div className="modal-header"> | ||
<span onClick={this.hideKey.bind(this)} className="close">×</span> | ||
<h2><i className="fas fa-qrcode" /> {address}</h2> | ||
</div> | ||
<div className="modal-body"> | ||
<h3><i className="fas fa-key" /> Private Key WIF</h3> | ||
<p>{this.props.privateKeyWIF}</p> | ||
<h4><i className="fas fa-lock" /> Extended Private</h4> | ||
<p>{this.props.xpriv}</p> | ||
<h4><i className="fas fa-lock-open" /> Extended Public</h4> | ||
<p>{this.props.xpub}</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default ModalDisplay; |
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