Skip to content

Commit

Permalink
Replace removed 'copy-to-clipboard' icon (#8853)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Gudahtt authored Jun 24, 2020
1 parent 310d35c commit 1d26444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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>
)
Expand Down

0 comments on commit 1d26444

Please sign in to comment.