How to use the @polkadot/ui-settings.icon function in @polkadot/ui-settings

To help you get started, we’ve selected a few @polkadot/ui-settings examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github polkadot-js / apps / packages / react-components / src / IdentityIcon.tsx View on Github external
export function getIdentityTheme (systemName: string): 'empty' {
  return ((uiSettings.icon === 'default' && NODES[systemName]) || uiSettings.icon) as 'empty';
}
github polkadot-js / ui / packages / react-identicon / src / Identicon.tsx View on Github external
private getWrapped ({ address, publicKey }: State): React.ReactNode {
    const { className, isHighlight = false, size = DEFAULT_SIZE, style, theme = settings.icon } = this.props;
    const Component = !address
      ? Empty
      : Components[theme === 'default' ? ICON_DEFAULT_HOST : theme] || Fallback;

    return (