1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Replace removed 'copy-to-clipboard' icon (#8853)

The 'copy-to-clipboard' icon was removed in #8190, and replaced with a
new 'Copy' icon component. It was still being used in two places
though, on the confirmation page for decryption and on the reveal seed
phrase screen..

The new Copy icon is now used in these two places instead. It has been
given a size of '17' to match the old icon size.
This commit is contained in:
Mark Stacey 2020-06-24 12:10:29 -03:00 committed by GitHub
parent 310d35c044
commit 1d2644423e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import React, { Component } from 'react'
import PropTypes from 'prop-types'
import copyToClipboard from 'copy-to-clipboard'
import { exportAsFile } from '../../../helpers/utils/util'
import Copy from '../icon/copy-icon.component'
class ExportTextContainer extends Component {
render () {
@ -20,7 +21,7 @@ class ExportTextContainer extends Component {
className="export-text-container__button export-text-container__button--copy"
onClick={() => copyToClipboard(text)}
>
<img src="images/copy-to-clipboard.svg" alt="" />
<Copy size={17} color="#3098DC" />
<div className="export-text-container__button-text">
{t('copyToClipboard')}
</div>

View File

@ -7,6 +7,7 @@ import AccountListItem from '../send/account-list-item/account-list-item.compone
import Button from '../../components/ui/button'
import Identicon from '../../components/ui/identicon'
import Tooltip from '../../components/ui/tooltip-v2'
import Copy from '../../components/ui/icon/copy-icon.component'
import { ENVIRONMENT_TYPE_NOTIFICATION } from '../../../../app/scripts/lib/enums'
import { getEnvironmentType } from '../../../../app/scripts/lib/util'
@ -273,7 +274,7 @@ export default class ConfirmDecryptMessage extends Component {
>
{t('decryptCopy')}
</div>
<img src="images/copy-to-clipboard.svg" />
<Copy size={17} color="#3098DC" />
</Tooltip>
</div>
)