Compare commits
2 Commits
71040dcd33
...
1241a14ea5
| Author | SHA1 | Date | |
|---|---|---|---|
| 1241a14ea5 | |||
| 0712d18824 |
@@ -247,51 +247,12 @@ export default function FinancialsSlide({ lang, investorId }: FinancialsSlidePro
|
|||||||
</div>
|
</div>
|
||||||
</FadeInView>
|
</FadeInView>
|
||||||
|
|
||||||
{/* Assumption Sliders */}
|
{fm.computing && (
|
||||||
<FadeInView delay={0.2}>
|
<div className="flex items-center gap-2 text-[10px] text-indigo-400">
|
||||||
<div className="bg-white/[0.05] backdrop-blur-xl border border-white/10 rounded-2xl p-3">
|
<div className="w-3 h-3 border border-indigo-400 border-t-transparent rounded-full animate-spin" />
|
||||||
<p className="text-[10px] text-white/40 uppercase tracking-wider mb-2">
|
{de ? 'Berechne...' : 'Computing...'}
|
||||||
{i.financials.adjustAssumptions}
|
|
||||||
</p>
|
|
||||||
{fm.activeScenario && (
|
|
||||||
<FinancialSliders
|
|
||||||
assumptions={fm.activeScenario.assumptions}
|
|
||||||
onAssumptionChange={(key, value) => {
|
|
||||||
if (fm.activeScenarioId) {
|
|
||||||
fm.updateAssumption(fm.activeScenarioId, key, value)
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
lang={lang}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{fm.computing && (
|
|
||||||
<div className="flex items-center gap-2 mt-2 text-[10px] text-indigo-400">
|
|
||||||
<div className="w-3 h-3 border border-indigo-400 border-t-transparent rounded-full animate-spin" />
|
|
||||||
{de ? 'Berechne...' : 'Computing...'}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{/* Snapshot status + reset */}
|
|
||||||
{investorId && (
|
|
||||||
<div className="flex items-center justify-between mt-2 pt-2 border-t border-white/5">
|
|
||||||
<span className="text-[9px] text-white/30">
|
|
||||||
{fm.snapshotStatus === 'saving' && (de ? 'Speichere...' : 'Saving...')}
|
|
||||||
{fm.snapshotStatus === 'saved' && (de ? 'Ihre Änderungen gespeichert' : 'Your changes saved')}
|
|
||||||
{fm.snapshotStatus === 'restored' && (de ? 'Ihre Werte geladen' : 'Your values restored')}
|
|
||||||
{fm.snapshotStatus === 'default' && (de ? 'Standardwerte' : 'Defaults')}
|
|
||||||
</span>
|
|
||||||
{fm.snapshotStatus !== 'default' && (
|
|
||||||
<button
|
|
||||||
onClick={() => fm.activeScenarioId && fm.resetToDefaults(fm.activeScenarioId)}
|
|
||||||
className="text-[9px] text-white/40 hover:text-white/70 transition-colors"
|
|
||||||
>
|
|
||||||
{de ? 'Zuruecksetzen' : 'Reset to defaults'}
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</FadeInView>
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ProjectionFooter lang={lang} />
|
<ProjectionFooter lang={lang} />
|
||||||
|
|||||||
Reference in New Issue
Block a user