@@ -47,6 +47,7 @@ class QRCodeWidget extends React.Component {
4747 error,
4848 isConnected,
4949 pay,
50+ downloadLink,
5051 } = this . props ;
5152 return (
5253 < QRCodeWidgetComponent
@@ -55,12 +56,16 @@ class QRCodeWidget extends React.Component {
5556 currency = { currency }
5657 error = { error }
5758 isConnected = { isConnected }
59+ downloadLink = { downloadLink }
5860 />
5961 ) ;
6062 }
6163
6264}
6365
66+ QRCodeWidget . defaultProps = {
67+ downloadLink : null ,
68+ } ;
6469QRCodeWidget . propTypes = {
6570 match : PropTypes . object . isRequired ,
6671 pay : PropTypes . func . isRequired ,
@@ -69,13 +74,15 @@ QRCodeWidget.propTypes = {
6974 currency : PropTypes . object . isRequired ,
7075 error : PropTypes . string . isRequired ,
7176 isConnected : PropTypes . bool . isRequired ,
77+ downloadLink : PropTypes . string ,
7278} ;
7379
7480export default withRouter ( connect (
7581 ( state ) => ( {
7682 currency : state . widget . get ( 'currency' ) ,
7783 error : state . widget . get ( 'error' ) ,
7884 isConnected : state . global . get ( 'isConnected' ) ,
85+ downloadLink : state . widget . get ( 'downloadLink' ) ,
7986 } ) ,
8087 ( dispatch ) => ( {
8188 pay : ( account ) => dispatch ( WidgetActions . payWithBridge ( account ) ) ,
0 commit comments