Add qr support for networkSpecs (#299)

* add qr support for networkSpecs

* make lint happy with spaces

* make lint happier

* remove path id in networkspecs type

* Update tsconfig.json
This commit is contained in:
Hanwen Cheng
2020-03-26 13:16:47 +01:00
committed by GitHub
parent 03033b8d7c
commit 44f7e6a436
4 changed files with 50 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
import settings, { Settings } from './Settings';
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults';
export { SettingsStruct } from './types';
export { SettingsStruct, NetworkSpecsStruct } from './types';
export default settings;
+9
View File
@@ -20,3 +20,12 @@ export interface SettingsStruct {
uiMode: string;
uiTheme: string;
}
export interface NetworkSpecsStruct {
color: string;
decimals: number;
genesisHash: string;
prefix: number;
title: string;
unit: string;
}