Skip to content

Commit

Permalink
Use React.ReactNode as a type for {children}
Browse files Browse the repository at this point in the history
  • Loading branch information
pepopowitz committed Feb 21, 2019
1 parent ff5225f commit b1794b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Flex } from "@artsy/palette"
import React, { SFC } from "react"

interface Props {
children: JSX.Element[] | string[] | string
children: React.ReactNode
}

export const SuggestionItemContainer: SFC<Props> = ({ children }) => (
Expand Down

0 comments on commit b1794b7

Please sign in to comment.