diff --git a/apps/infoalloggi/src/components/prezzi.tsx b/apps/infoalloggi/src/components/prezzi.tsx index 9bf6a13..ac0fd55 100644 --- a/apps/infoalloggi/src/components/prezzi.tsx +++ b/apps/infoalloggi/src/components/prezzi.tsx @@ -103,6 +103,7 @@ export const PricingComponent = ({ opzioni, cta, statico = false, + defaultValue = 0, className, title, tipo, @@ -113,12 +114,13 @@ export const PricingComponent = ({ title: string; cta: string; statico?: boolean; + defaultValue?: number; className?: string; tipo: TipologiaPosizioneEnum; optionsBtnClassName?: string; }) => { const { t } = useTranslation(); - const [Value, setValue] = useState(0); + const [Value, setValue] = useState(defaultValue); const p = pricingData[Value]; const downPayment = p?.downPayment || 0; const secondPayment = p?.secondPayment || 0;