From c5066c8562b18830b90da80ddafba1fee4df693f Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 9 Mar 2026 08:23:39 +0000 Subject: [PATCH] Update src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx --- .../layouts/timelines/TimelinePhoneView.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx b/src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx index dfc7834..277c5cd 100644 --- a/src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx +++ b/src/components/cardStack/layouts/timelines/TimelinePhoneView.tsx @@ -1,8 +1,14 @@ -import React, { useRef } from "react"; +import React from "react"; import { useCardAnimation } from "@/components/cardStack/hooks/useCardAnimation"; +interface TimelinePhoneViewItem { + id: string; + label: string; + detail: string; +} + interface TimelinePhoneViewProps { - items?: any[]; + items?: TimelinePhoneViewItem[]; } export default function TimelinePhoneView({ items = [] }: TimelinePhoneViewProps) { @@ -16,8 +22,8 @@ export default function TimelinePhoneView({ items = [] }: TimelinePhoneViewProps return (
- {items.map((item, index) => ( -
+ {items.map((item) => ( +
{item.label}
))}