From 37b6d42dbfc3294479540d8c6f961a614d00d675 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 3 Jun 2023 18:32:35 +0200 Subject: [PATCH] Timeline: Fix types --- src/components/timeline/TimelineCard.tsx | 4 ++-- src/components/timeline/TimelineElement.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/timeline/TimelineCard.tsx b/src/components/timeline/TimelineCard.tsx index 14e8422..d909011 100644 --- a/src/components/timeline/TimelineCard.tsx +++ b/src/components/timeline/TimelineCard.tsx @@ -1,8 +1,8 @@ import react, {Children, ReactNode} from 'react' -import Project from '../../data/Project' +import TimelineCardSummary from './TimelineCardSummary' type TimelineCardProps = { - children: ReactNode + children: react.ReactElement>[] } function TimelineCard({ children } : TimelineCardProps) { diff --git a/src/components/timeline/TimelineElement.tsx b/src/components/timeline/TimelineElement.tsx index 13b27bf..6aa75dc 100644 --- a/src/components/timeline/TimelineElement.tsx +++ b/src/components/timeline/TimelineElement.tsx @@ -2,7 +2,7 @@ import './TimelineElement.scss' import react, {Children, ReactNode} from 'react' type TimelineElementProps = { - children: ReactNode + children: react.ReactElement>[] } function TimelineElement({ children } : TimelineElementProps) {