feat: deal product services
This commit is contained in:
@@ -6,10 +6,11 @@ import RangePriceInput, {PriceRangeInputType} from "./RangePriceInput.tsx";
|
|||||||
type Props = {
|
type Props = {
|
||||||
singlePriceInputProps: PriceInputType;
|
singlePriceInputProps: PriceInputType;
|
||||||
priceRangeInputProps: PriceRangeInputType;
|
priceRangeInputProps: PriceRangeInputType;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ServicePriceInput: FC<Props> = ({priceRangeInputProps, singlePriceInputProps}) => {
|
const ServicePriceInput: FC<Props> = ({priceRangeInputProps, singlePriceInputProps}) => {
|
||||||
const [isUsingRange, setIsUsingRange] = useState<boolean>(true);
|
const [isUsingRange, setIsUsingRange] = useState<boolean>(priceRangeInputProps.value.length > 0);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Flex
|
<Flex
|
||||||
|
|||||||
Reference in New Issue
Block a user