mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-14 05:41:01 +00:00
Convert all to named imports (#414)
This commit is contained in:
@@ -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