mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-12 22:21:05 +00:00
Introduce ICON_DEFAULT_HOST (#207)
This commit is contained in:
@@ -8,7 +8,7 @@ import { IdentityProps as Props, Props as ComponentProps } from './types';
|
||||
import React from 'react';
|
||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||
import styled from 'styled-components';
|
||||
import settings, { ICON_DEFAULT } from '@polkadot/ui-settings';
|
||||
import settings, { ICON_DEFAULT_HOST } from '@polkadot/ui-settings';
|
||||
import { isHex, isU8a, u8aToHex } from '@polkadot/util';
|
||||
import { decodeAddress, encodeAddress } from '@polkadot/util-crypto';
|
||||
|
||||
@@ -113,7 +113,7 @@ export default class IdentityIcon extends React.PureComponent<Props, State> {
|
||||
const { className, isHighlight = false, size = DEFAULT_SIZE, style, theme = settings.icon } = this.props;
|
||||
const Component = !address
|
||||
? Empty
|
||||
: Components[theme === 'default' ? ICON_DEFAULT : theme] || Fallback;
|
||||
: Components[theme === 'default' ? ICON_DEFAULT_HOST : theme] || Fallback;
|
||||
|
||||
return (
|
||||
<Wrapper
|
||||
|
||||
Reference in New Issue
Block a user