diff --git a/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx b/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx
index a98346fbb..8c32b76f7 100644
--- a/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx
+++ b/packages/keychain/src/components/purchasenew/checkout/onchain/index.tsx
@@ -42,7 +42,7 @@ export function OnchainCheckout() {
incrementQuantity,
decrementQuantity,
onOnchainPurchase,
- onSendDeposit,
+ //onSendDeposit,
} = useOnchainPurchaseContext();
const [isLoading, setIsLoading] = useState(false);
@@ -195,16 +195,26 @@ export function OnchainCheckout() {
+ >
+
+ {/* */}
+
>
)}
diff --git a/packages/keychain/src/components/purchasenew/checkout/onchain/quantity.tsx b/packages/keychain/src/components/purchasenew/checkout/onchain/quantity.tsx
index 07831ecab..feb580b23 100644
--- a/packages/keychain/src/components/purchasenew/checkout/onchain/quantity.tsx
+++ b/packages/keychain/src/components/purchasenew/checkout/onchain/quantity.tsx
@@ -1,31 +1,25 @@
import { Button, MinusIcon, PlusIcon } from "@cartridge/ui";
+import { ReactNode } from "react";
interface QuantityControlsProps {
quantity: number;
- isLoading: boolean;
isSendingDeposit: boolean;
globalDisabled: boolean;
hasSufficientBalance: boolean;
- bridgeFrom: string | null;
onIncrement: () => void;
onDecrement: () => void;
- onPurchase: () => void;
- onBridge: () => void;
+ children: ReactNode;
}
export function QuantityControls({
quantity,
- isLoading,
isSendingDeposit,
globalDisabled,
hasSufficientBalance,
- bridgeFrom,
onIncrement,
onDecrement,
- onPurchase,
- onBridge,
+ children,
}: QuantityControlsProps) {
- const purchaseLabel = bridgeFrom ? "Bridge" : `Buy ${quantity}`;
const isQuantityDisabled =
(globalDisabled && hasSufficientBalance) || isSendingDeposit;
@@ -45,14 +39,7 @@ export function QuantityControls({
>
-
+ {children}
);
}