-
Default price
+
+
Default price
{Number(price) === 0 ? (
-
Free
+
Free
) : (
-
+
{price}{" "}
{foundCurrency
? foundCurrency.symbol
: isAddressZero(currencyAddress || "")
? chain?.nativeCurrency.symbol || "(Native Token)"
: `(${shortenIfAddress(currencyAddress)})`}
-
+
)}
);
diff --git a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/quantity-input-with-unlimited.tsx b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/quantity-input-with-unlimited.tsx
index af7bc006abb..d540531ab74 100644
--- a/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/quantity-input-with-unlimited.tsx
+++ b/apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/quantity-input-with-unlimited.tsx
@@ -1,18 +1,14 @@
-import {
- Input,
- InputGroup,
- type InputProps,
- InputRightElement,
-} from "@chakra-ui/react";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
import { useEffect, useState } from "react";
-import { Button } from "tw-components";
-interface QuantityInputWithUnlimitedProps
- extends Omit
{
+interface QuantityInputWithUnlimitedProps {
value: string;
onChange: (value: string) => void;
hideMaxButton?: true;
decimals?: number;
+ isDisabled: boolean;
+ isRequired: boolean;
}
export const QuantityInputWithUnlimited: React.FC<
@@ -24,7 +20,6 @@ export const QuantityInputWithUnlimited: React.FC<
isDisabled,
isRequired,
decimals,
- ...restInputProps
}) => {
const [stringValue, setStringValue] = useState(
Number.isNaN(Number(value)) ? "0" : value.toString(),
@@ -50,10 +45,10 @@ export const QuantityInputWithUnlimited: React.FC<
};
return (
-
+
updateValue(e.currentTarget.value)}
onBlur={() => {
@@ -65,23 +60,21 @@ export const QuantityInputWithUnlimited: React.FC<
setStringValue("0");
}
}}
+ className="border-none"
/>
{hideMaxButton ? null : (
-
-
-
+
)}
-
+
);
};