Add QrCode & Copy to ShapeShift (#4322)
* Extract CopyIcon to ~/ui/Icons * Add copy & QrCode address * Default size 4 * Add bitcoin: link * use protocol links applicable to coin exchanged * Remove .only
This commit is contained in:
@@ -14,21 +14,21 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import { IconButton } from 'material-ui';
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import Clipboard from 'react-copy-to-clipboard';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
|
||||
import { IconButton } from 'material-ui';
|
||||
import Clipboard from 'react-copy-to-clipboard';
|
||||
import CopyIcon from 'material-ui/svg-icons/content/content-copy';
|
||||
import Theme from '../Theme';
|
||||
|
||||
import { showSnackbar } from '~/redux/providers/snackbarActions';
|
||||
|
||||
const { textColor, disabledTextColor } = Theme.flatButton;
|
||||
import { CopyIcon } from '../Icons';
|
||||
import Theme from '../Theme';
|
||||
|
||||
import styles from './copyToClipboard.css';
|
||||
|
||||
const { textColor, disabledTextColor } = Theme.flatButton;
|
||||
|
||||
class CopyToClipboard extends Component {
|
||||
static propTypes = {
|
||||
showSnackbar: PropTypes.func.isRequired,
|
||||
|
||||
@@ -22,6 +22,7 @@ import CloseIcon from 'material-ui/svg-icons/navigation/close';
|
||||
import CompareIcon from 'material-ui/svg-icons/action/compare-arrows';
|
||||
import ComputerIcon from 'material-ui/svg-icons/hardware/desktop-mac';
|
||||
import ContractIcon from 'material-ui/svg-icons/action/code';
|
||||
import CopyIcon from 'material-ui/svg-icons/content/content-copy';
|
||||
import DashboardIcon from 'material-ui/svg-icons/action/dashboard';
|
||||
import DeleteIcon from 'material-ui/svg-icons/action/delete';
|
||||
import DoneIcon from 'material-ui/svg-icons/action/done-all';
|
||||
@@ -50,6 +51,7 @@ export {
|
||||
CompareIcon,
|
||||
ComputerIcon,
|
||||
ContractIcon,
|
||||
CopyIcon,
|
||||
DashboardIcon,
|
||||
DeleteIcon,
|
||||
DoneIcon,
|
||||
|
||||
@@ -34,7 +34,7 @@ export default class QrCode extends Component {
|
||||
|
||||
static defaultProps = {
|
||||
margin: 2,
|
||||
size: 5
|
||||
size: 4
|
||||
};
|
||||
|
||||
state = {
|
||||
|
||||
Reference in New Issue
Block a user