mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-19 13:31:15 +00:00
Convert all to named imports (#414)
This commit is contained in:
@@ -5,7 +5,7 @@ import type { KeyringJson, KeyringStore } from '../types';
|
||||
|
||||
import store from 'store';
|
||||
|
||||
export default class BrowserStore implements KeyringStore {
|
||||
export class BrowserStore implements KeyringStore {
|
||||
public all (cb: (key: string, value: KeyringJson) => void): void {
|
||||
store.each((value: KeyringJson, key: string): void => {
|
||||
cb(key, value);
|
||||
|
||||
@@ -10,7 +10,7 @@ import path from 'path';
|
||||
import { assert } from '@polkadot/util';
|
||||
|
||||
// NOTE untested and unused by any known apps, probably broken in various mysterious ways
|
||||
export default class FileStore implements KeyringStore {
|
||||
export class FileStore implements KeyringStore {
|
||||
#path: string;
|
||||
|
||||
constructor (path: string) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
export { default as BrowserStore } from './Browser';
|
||||
export { default as FileStore } from './File';
|
||||
export { BrowserStore } from './Browser';
|
||||
export { FileStore } from './File';
|
||||
|
||||
Reference in New Issue
Block a user