diff --git a/app/components/Onboarding/Syncing.js b/app/components/Onboarding/Syncing.js index 99750486..a408359d 100644 --- a/app/components/Onboarding/Syncing.js +++ b/app/components/Onboarding/Syncing.js @@ -1,16 +1,27 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' +import QRCode from 'qrcode.react' +import copy from 'copy-to-clipboard' import Isvg from 'react-inlinesvg' import zapLogo from 'icons/zap_logo.svg' +import { showNotification } from 'notifications' import styles from './Syncing.scss' class Syncing extends Component { componentWillMount() { - this.props.fetchBlockHeight() + const { fetchBlockHeight, newAddress } = this.props + + fetchBlockHeight() + newAddress('np2wkh') } render() { - const { syncPercentage } = this.props + const { syncPercentage, address } = this.props + + const copyClicked = () => { + copy(address) + showNotification('Noice', 'Successfully copied to clipboard') + } return (
Might as well fund your wallet while you're waiting to sync.
+