fix: persist annual demonstration through existing simulation drafts
This commit is contained in:
@@ -929,7 +929,15 @@ export function SimulationBusinessPlan({
|
||||
? 'Fechar cenário de exemplo'
|
||||
: 'Carregar cenário anual de exemplo'}
|
||||
</button>
|
||||
{showExample && <SimulationAnnualExample currency={currency} />}
|
||||
{showExample && (
|
||||
<SimulationAnnualExample
|
||||
currency={currency}
|
||||
snapshot={plan.annualExampleSnapshot}
|
||||
onSnapshotChange={(annualExampleSnapshot) =>
|
||||
savePlan({ ...plan, annualExampleSnapshot })
|
||||
}
|
||||
/>
|
||||
)}
|
||||
<div className="my-3 flex flex-wrap items-end gap-3 rounded border p-3">
|
||||
<label className="grid gap-1 text-sm">
|
||||
Importar plano financeiro InvestMoz (.json, até 60 KB)
|
||||
|
||||
Reference in New Issue
Block a user