Introduce ICON_DEFAULT_HOST (#207)

This commit is contained in:
Jaco Greeff
2019-09-13 14:46:21 +02:00
committed by GitHub
parent cde5b61b33
commit d0ef98b18e
4 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -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