Timeline: Fix types

This commit is contained in:
Florian RICHER 2023-06-03 18:32:35 +02:00
parent c5d61f5466
commit 37b6d42dbf
2 changed files with 3 additions and 3 deletions

View file

@ -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<any, react.JSXElementConstructor<any>>[]
}
function TimelineCard({ children } : TimelineCardProps) {

View file

@ -2,7 +2,7 @@ import './TimelineElement.scss'
import react, {Children, ReactNode} from 'react'
type TimelineElementProps = {
children: ReactNode
children: react.ReactElement<any, react.JSXElementConstructor<any>>[]
}
function TimelineElement({ children } : TimelineElementProps) {