mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-12-01 15:00:02 +00:00
Convert all to named imports (#414)
This commit is contained in:
1 parent
a5434d4428
commit
7e494673e0
69 files changed
+175
-193
No files matched your search
@@ -9,7 +9,7 @@ import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
import observableAll from '../observable';
|
||||
import { obervableAll } from '../observable';
|
||||
|
||||
let hasCalledInitOptions = false;
|
||||
|
||||
@@ -49,7 +49,7 @@ export class KeyringOption implements KeyringOptionInstance {
|
||||
public init (keyring: KeyringStruct): void {
|
||||
assert(!hasCalledInitOptions, 'Unable to initialise options more than once');
|
||||
|
||||
observableAll.subscribe((): void => {
|
||||
obervableAll.subscribe((): void => {
|
||||
const opts = this.emptyOptions();
|
||||
|
||||
this.addAccounts(keyring, opts);
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { KeyringSectionOption } from './types';
|
||||
|
||||
import { isUndefined } from '@polkadot/util';
|
||||
|
||||
export default function createItem (address: string, _name?: string): KeyringSectionOption {
|
||||
export function createOptionItem (address: string, _name?: string): KeyringSectionOption {
|
||||
const name = isUndefined(_name)
|
||||
? (
|
||||
(address.length > 15)
|
||||
|
||||
Reference in new issue
Block a user