mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
New Icons: Replace instance of fa-qr-code icon (#17474)
* New Icons: Replace instance of fa-qr-code icon * Update ui/pages/send/send-content/add-recipient/domain-input.component.js Co-authored-by: George Marshall <george.marshall@consensys.net> --------- Co-authored-by: George Marshall <george.marshall@consensys.net>
This commit is contained in:
parent
edb2c9ea00
commit
d057410762
@ -8,6 +8,11 @@ import {
|
||||
isBurnAddress,
|
||||
isValidHexAddress,
|
||||
} from '../../../../../shared/modules/hexstring-utils';
|
||||
import {
|
||||
ButtonIcon,
|
||||
ICON_NAMES,
|
||||
} from '../../../../components/component-library';
|
||||
import { COLORS } from '../../../../helpers/constants/design-system';
|
||||
|
||||
export default class DomainInput extends Component {
|
||||
static contextTypes = {
|
||||
@ -147,7 +152,7 @@ export default class DomainInput extends Component {
|
||||
autoFocus
|
||||
data-testid="ens-input"
|
||||
/>
|
||||
<button
|
||||
<ButtonIcon
|
||||
className="ens-input__wrapper__action-icon-button"
|
||||
onClick={() => {
|
||||
if (userInput) {
|
||||
@ -156,20 +161,12 @@ export default class DomainInput extends Component {
|
||||
this.props.scanQrCode();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<i
|
||||
className={classnames('fa', {
|
||||
'fa-times': userInput,
|
||||
'fa-qrcode': !userInput,
|
||||
})}
|
||||
title={t(userInput ? 'close' : 'scanQrCode')}
|
||||
style={{
|
||||
color: userInput
|
||||
? 'var(--color-icon-default)'
|
||||
: 'var(--color-primary-default)',
|
||||
}}
|
||||
/>
|
||||
</button>
|
||||
iconName={
|
||||
userInput ? ICON_NAMES.CLOSE : ICON_NAMES.SCAN_BARCODE
|
||||
}
|
||||
ariaLabel={t(userInput ? 'close' : 'scanQrCode')}
|
||||
color={userInput ? COLORS.ICON_DEFAULT : COLORS.PRIMARY_DEFAULT}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user