Skip to content

Commit

Permalink
define children props
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromevvb committed Jun 17, 2022
1 parent 5271834 commit 529b54c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/components/common/Card/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { ReactNode } from 'react'
import Spinner from '../Spinner'
import styles from './styles'

export interface CardProps {
className?: string
loading?: boolean
children: ReactNode
padding?: boolean
hoverAsLink?: boolean
}
Expand Down
9 changes: 3 additions & 6 deletions src/components/common/Heading/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import React from 'react'
import React, { ReactNode } from 'react'
import styles from './styles'
import {
HeadingColor,
HeadingSize,
HeadingFontWeight
} from './Heading.types'
import { HeadingColor, HeadingSize, HeadingFontWeight } from './Heading.types'

export interface HeadingProps {
size?: HeadingSize
weight?: HeadingFontWeight
color?: HeadingColor
children?: ReactNode
className?: string
uppercase?: boolean
link?: boolean
Expand Down

0 comments on commit 529b54c

Please sign in to comment.