feat: deal product services

This commit is contained in:
2024-05-21 06:21:51 +03:00
parent 3785fdb410
commit dea4ae6625

View File

@@ -6,10 +6,11 @@ import RangePriceInput, {PriceRangeInputType} from "./RangePriceInput.tsx";
type Props = {
singlePriceInputProps: PriceInputType;
priceRangeInputProps: PriceRangeInputType;
}
const ServicePriceInput: FC<Props> = ({priceRangeInputProps, singlePriceInputProps}) => {
const [isUsingRange, setIsUsingRange] = useState<boolean>(true);
const [isUsingRange, setIsUsingRange] = useState<boolean>(priceRangeInputProps.value.length > 0);
return (
<>
<Flex