Skip to content

Commit

Permalink
Update interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
aryzing committed Mar 21, 2024
1 parent 7a5b306 commit 60548d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/lib/WalletProviderOption.tsx
Original file line number Diff line number Diff line change
@@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib/WalletProviderSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ export interface InstallPrompt {
url: string;
}

export interface WalletProviderOption {
export interface TWalletProviderOption {
name: string;
id: string;
icon: string;
installPrompt?: InstallPrompt;
}

export function selectWalletProvider(
walletProviders: Array<WalletProviderOption>,
walletProviders: Array<TWalletProviderOption>,
): Promise<string> {
return new Promise((resolve, reject) => {
const walletSelectorElement = getWalletProviderSelectorElement();
Expand Down
4 changes: 2 additions & 2 deletions src/mocks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { WalletProviderOption } from "./lib";
import { TWalletProviderOption } from "./lib";

export function mockGetAvailableProviders(): Array<WalletProviderOption> {
export function mockGetAvailableProviders(): Array<TWalletProviderOption> {
return [
{
name: "Walet (uninstalled)",
Expand Down

0 comments on commit 60548d7

Please sign in to comment.