Skip to content

Commit

Permalink
[NO CHANGELOG][Checkout Widget] Fix typo with params type (#2247)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesgodi authored Oct 2, 2024
1 parent 966ed5a commit 87bd1e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ export type CheckoutWidgetWalletFlowParams = {
flow: CheckoutFlowType.WALLET;
} & WalletWidgetParams;

export type CheckouWidgetSwapFlowParams = {
export type CheckoutWidgetSwapFlowParams = {
flow: CheckoutFlowType.SWAP;
} & SwapWidgetParams;

export type CheckouWidgetBridgeFlowParams = {
export type CheckoutWidgetBridgeFlowParams = {
flow: CheckoutFlowType.BRIDGE;
} & BridgeWidgetParams;

export type CheckouWidgetOnRampFlowParams = {
export type CheckoutWidgetOnRampFlowParams = {
flow: CheckoutFlowType.ONRAMP;
} & OnRampWidgetParams;

export type CheckouWidgetSaleFlowParams = {
export type CheckoutWidgetSaleFlowParams = {
flow: CheckoutFlowType.SALE;
} & SaleWidgetParams;

Expand All @@ -49,10 +49,10 @@ export type CheckoutWidgetAddFundsFlowParams = {
export type CheckoutWidgetFlowParams =
| CheckoutWidgetConnectFlowParams
| CheckoutWidgetWalletFlowParams
| CheckouWidgetSwapFlowParams
| CheckouWidgetBridgeFlowParams
| CheckouWidgetOnRampFlowParams
| CheckouWidgetSaleFlowParams
| CheckoutWidgetSwapFlowParams
| CheckoutWidgetBridgeFlowParams
| CheckoutWidgetOnRampFlowParams
| CheckoutWidgetSaleFlowParams
| CheckoutWidgetAddFundsFlowParams;

export type CheckoutWidgetParams = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
CheckoutWidgetConnectFlowParams,
CheckoutWidgetWalletFlowParams,
CheckoutWidgetAddFundsFlowParams,
CheckouWidgetSwapFlowParams,
CheckouWidgetBridgeFlowParams,
CheckouWidgetOnRampFlowParams,
CheckouWidgetSaleFlowParams,
CheckoutWidgetSwapFlowParams,
CheckoutWidgetBridgeFlowParams,
CheckoutWidgetOnRampFlowParams,
CheckoutWidgetSaleFlowParams,
CheckoutFlowType,
} from '@imtbl/checkout-sdk';
import React, { Suspense } from 'react';
Expand Down Expand Up @@ -68,7 +68,7 @@ export class CheckoutWidgetRoot extends Base<WidgetType.CHECKOUT> {
return params;
}

protected getValidSaleFlowParams(params: CheckouWidgetSaleFlowParams) {
protected getValidSaleFlowParams(params: CheckoutWidgetSaleFlowParams) {
const validatedParams = { ...params };

if (!isValidWalletProvider(params.walletProviderName)) {
Expand Down Expand Up @@ -142,7 +142,7 @@ export class CheckoutWidgetRoot extends Base<WidgetType.CHECKOUT> {
return validatedParams;
}

protected getValidSwapFlowParams(params: CheckouWidgetSwapFlowParams) {
protected getValidSwapFlowParams(params: CheckoutWidgetSwapFlowParams) {
const validatedParams = { ...params };

if (!isValidAmount(params.amount)) {
Expand Down Expand Up @@ -170,7 +170,7 @@ export class CheckoutWidgetRoot extends Base<WidgetType.CHECKOUT> {
return validatedParams;
}

protected getValidBridgeFlowParams(params: CheckouWidgetBridgeFlowParams) {
protected getValidBridgeFlowParams(params: CheckoutWidgetBridgeFlowParams) {
const validatedParams = { ...params };

if (!isValidAmount(params.amount)) {
Expand All @@ -188,7 +188,7 @@ export class CheckoutWidgetRoot extends Base<WidgetType.CHECKOUT> {
return validatedParams;
}

protected getValidOnRampFlowParams(params: CheckouWidgetOnRampFlowParams) {
protected getValidOnRampFlowParams(params: CheckoutWidgetOnRampFlowParams) {
const validatedParams = { ...params };

if (!isValidAmount(params.amount)) {
Expand Down

0 comments on commit 87bd1e5

Please sign in to comment.