mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-04-25 17:37:59 +00:00
Introduce ICON_DEFAULT_HOST (#207)
This commit is contained in:
@@ -7,7 +7,7 @@ import { Option } from '../types';
|
||||
import { CRYPTOS } from './crypto';
|
||||
import { ENDPOINTS, ENDPOINT_DEFAULT } from './endpoints';
|
||||
import { PREFIXES, PREFIX_DEFAULT } from './ss58';
|
||||
import { ICON_DEFAULT, ICONS, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui';
|
||||
import { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui';
|
||||
|
||||
const LANGUAGE_DEFAULT = 'default';
|
||||
|
||||
@@ -39,6 +39,7 @@ export {
|
||||
ENDPOINT_DEFAULT,
|
||||
ENDPOINTS,
|
||||
ICON_DEFAULT,
|
||||
ICON_DEFAULT_HOST,
|
||||
ICONS,
|
||||
LANGUAGE_DEFAULT,
|
||||
LANGUAGES,
|
||||
|
||||
@@ -42,7 +42,9 @@ const UITHEMES: Option[] = [
|
||||
}
|
||||
];
|
||||
|
||||
const ICON_DEFAULT = isPolkadot
|
||||
const ICON_DEFAULT = 'default';
|
||||
|
||||
const ICON_DEFAULT_HOST = isPolkadot
|
||||
? 'polkadot'
|
||||
: 'substrate';
|
||||
|
||||
@@ -50,7 +52,7 @@ const ICONS: Option[] = [
|
||||
{
|
||||
info: 'default',
|
||||
text: 'Default for the connected node',
|
||||
value: -1
|
||||
value: 'default'
|
||||
},
|
||||
{
|
||||
info: 'polkadot',
|
||||
@@ -71,6 +73,7 @@ const ICONS: Option[] = [
|
||||
|
||||
export {
|
||||
ICON_DEFAULT,
|
||||
ICON_DEFAULT_HOST,
|
||||
ICONS,
|
||||
LANGUAGE_DEFAULT,
|
||||
UIMODE_DEFAULT,
|
||||
|
||||
Reference in New Issue
Block a user