Skip to content

Commit 2d0e30b

Browse files
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>
1 parent 0c68007 commit 2d0e30b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

apps/sim/app/(landing)/components/features/features.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,19 @@ function hexToRgba(hex: string, alpha: number): string {
1414
return `rgba(${r},${g},${b},${alpha})`
1515
}
1616

17-
const FEATURE_TABS = [
17+
interface FeatureTab {
18+
label: string
19+
mobileLabel?: string
20+
color: string
21+
badgeColor?: string
22+
title: string
23+
description: string
24+
cta: string
25+
segments: number[][]
26+
hideOnMobile?: boolean
27+
}
28+
29+
const FEATURE_TABS: FeatureTab[] = [
1830
{
1931
label: 'Mothership',
2032
color: '#FA4EDF',

apps/sim/app/(landing)/components/landing-preview/landing-preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function LandingPreview() {
140140

141141
const scheduleNextStep = useCallback(() => {
142142
if (!autoCycleActiveRef.current) return
143-
const steps = isDesktopRef.current ? DESKTOP_STEPS : MOBILE_STEPS
143+
const steps = DESKTOP_STEPS
144144
const currentStep = steps[demoIndexRef.current]
145145
demoTimerRef.current = setTimeout(() => {
146146
if (!autoCycleActiveRef.current) return

0 commit comments

Comments
 (0)