Convert all to named imports (#414)

This commit is contained in:
Jaco Greeff
2020-12-09 01:41:44 +01:00
committed by GitHub
parent a5434d4428
commit 7e494673e0
69 changed files with 175 additions and 193 deletions
+1 -3
View File
@@ -170,6 +170,4 @@ export class Settings implements SettingsStruct {
}
}
const settings = new Settings();
export default settings;
export const settings = new Settings();
+1 -1
View File
@@ -9,4 +9,4 @@ const chains: Record <string, ChainDef> = known
.filter(({ genesisHash }) => genesisHash.length > 1)
.reduce((chains, { genesisHash, network }) => ({ ...chains, [network]: genesisHash }), {});
export default chains;
export { chains };
+3 -5
View File
@@ -1,13 +1,11 @@
// Copyright 2017-2020 @polkadot/ui-settings authors & contributors
// SPDX-License-Identifier: Apache-2.0
import settings, { Settings } from './Settings';
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, NetworkSpecsStruct } from './types';
export default settings;
export { settings, Settings };
export {
Settings
};
export default settings;