From d0ef98b18eaed3f293fae5ec770f97d5ed2f1c99 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 13 Sep 2019 14:46:21 +0200 Subject: [PATCH] Introduce ICON_DEFAULT_HOST (#207) --- packages/react-identicon/src/Identicon.tsx | 4 ++-- packages/ui-settings/src/defaults/index.ts | 3 ++- packages/ui-settings/src/defaults/ui.ts | 7 +++++-- packages/ui-settings/src/index.ts | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/react-identicon/src/Identicon.tsx b/packages/react-identicon/src/Identicon.tsx index 57ad9a92..46d555a7 100644 --- a/packages/react-identicon/src/Identicon.tsx +++ b/packages/react-identicon/src/Identicon.tsx @@ -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 { 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 (