Skip to content
Prev Previous commit
Next Next commit
fix: resolve TypeScript errors in landing components
- Add explicit FeatureTab interface type for FEATURE_TABS with optional mobileLabel property
- Remove reference to undefined MOBILE_STEPS in landing-preview (mobile uses static display anyway)

Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
  • Loading branch information
cursoragent and emir-karabeg committed Apr 5, 2026
commit 2d0e30be8426235d3e96b6a05397934256d58844
14 changes: 13 additions & 1 deletion apps/sim/app/(landing)/components/features/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ function hexToRgba(hex: string, alpha: number): string {
return `rgba(${r},${g},${b},${alpha})`
}

const FEATURE_TABS = [
interface FeatureTab {
label: string
mobileLabel?: string
color: string
badgeColor?: string
title: string
description: string
cta: string
segments: number[][]
hideOnMobile?: boolean
}

const FEATURE_TABS: FeatureTab[] = [
{
label: 'Mothership',
color: '#FA4EDF',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function LandingPreview() {

const scheduleNextStep = useCallback(() => {
if (!autoCycleActiveRef.current) return
const steps = isDesktopRef.current ? DESKTOP_STEPS : MOBILE_STEPS
const steps = DESKTOP_STEPS
const currentStep = steps[demoIndexRef.current]
demoTimerRef.current = setTimeout(() => {
if (!autoCycleActiveRef.current) return
Expand Down
Loading