Timeline: Fix types
This commit is contained in:
parent
c5d61f5466
commit
37b6d42dbf
2 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue