From 60548d7f98b6d94a14b2946939f6b4122935fa1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduard=20Bardaj=C3=AD=20Puig?= Date: Thu, 21 Mar 2024 14:31:14 +0100 Subject: [PATCH] Update interface name --- src/lib/WalletProviderOption.tsx | 4 ++-- src/lib/WalletProviderSelector.tsx | 2 +- src/lib/utils.ts | 4 ++-- src/mocks.ts | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/WalletProviderOption.tsx b/src/lib/WalletProviderOption.tsx index 67ac4ea..5c49f37 100644 --- a/src/lib/WalletProviderOption.tsx +++ b/src/lib/WalletProviderOption.tsx @@ -1,8 +1,8 @@ import { createSignal } from "solid-js"; -import { WalletProviderOption } from "./utils"; +import { TWalletProviderOption } from "./utils"; -interface Props extends WalletProviderOption { +interface Props extends TWalletProviderOption { onProviderSelected: (walletId: string) => void; } diff --git a/src/lib/WalletProviderSelector.tsx b/src/lib/WalletProviderSelector.tsx index 3a83ee0..e134c80 100644 --- a/src/lib/WalletProviderSelector.tsx +++ b/src/lib/WalletProviderSelector.tsx @@ -5,7 +5,7 @@ import { CssReset } from "./CssReset"; import { WalletProviderOption } from "./WalletProviderOption"; import { XCircle } from "./XCircle"; import { cancel, close, open, select } from "./constants"; -import { WalletProviderOption as TWalletProviderOption } from "./utils"; +import { TWalletProviderOption } from "./utils"; export function WalletProviderSelector() { const [isVisible, setIsVisible] = createSignal(false); diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 2c49d40..2dab04b 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -36,7 +36,7 @@ export interface InstallPrompt { url: string; } -export interface WalletProviderOption { +export interface TWalletProviderOption { name: string; id: string; icon: string; @@ -44,7 +44,7 @@ export interface WalletProviderOption { } export function selectWalletProvider( - walletProviders: Array, + walletProviders: Array, ): Promise { return new Promise((resolve, reject) => { const walletSelectorElement = getWalletProviderSelectorElement(); diff --git a/src/mocks.ts b/src/mocks.ts index bd66366..3ffe22c 100644 --- a/src/mocks.ts +++ b/src/mocks.ts @@ -1,6 +1,6 @@ -import { WalletProviderOption } from "./lib"; +import { TWalletProviderOption } from "./lib"; -export function mockGetAvailableProviders(): Array { +export function mockGetAvailableProviders(): Array { return [ { name: "Walet (uninstalled)",