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) {