fix(pitch-deck): KPICard NaN for string values, remove cap-table + Land&Expand
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m19s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 30s
CI / test-python-voice (push) Successful in 32s
CI / test-bqas (push) Successful in 33s
All checks were successful
Build pitch-deck / build-push-deploy (push) Successful in 1m19s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 30s
CI / test-python-voice (push) Successful in 32s
CI / test-bqas (push) Successful in 33s
- KPICard: accept string values (e.g. "380+") without NaN - Remove cap-table slide from order + sidebar - Remove Land & Expand arrow from Pricing slide Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import AnimatedCounter from './AnimatedCounter'
|
||||
|
||||
interface KPICardProps {
|
||||
label: string
|
||||
value: number
|
||||
value: number | string
|
||||
prefix?: string
|
||||
suffix?: string
|
||||
decimals?: number
|
||||
@@ -43,7 +43,7 @@ export default function KPICard({
|
||||
<p className="text-[10px] uppercase tracking-wider text-white/40 mb-1 text-center">{label}</p>
|
||||
<div className="flex items-end justify-center gap-2">
|
||||
<p className="text-2xl font-bold text-white leading-none">
|
||||
<AnimatedCounter target={value} prefix={prefix} suffix={suffix} duration={1200} decimals={decimals} />
|
||||
{typeof value === 'string' ? `${prefix}${value}${suffix}` : <AnimatedCounter target={value} prefix={prefix} suffix={suffix} duration={1200} decimals={decimals} />}
|
||||
</p>
|
||||
{trend !== 'neutral' && (
|
||||
<span className={`flex items-center gap-0.5 text-xs pb-0.5 ${trend === 'up' ? 'text-emerald-400' : 'text-red-400'}`}>
|
||||
|
||||
Reference in New Issue
Block a user