From 4e78efd11529aaae32532dd213993e841523b857 Mon Sep 17 00:00:00 2001 From: gerrod Date: Wed, 19 May 2021 13:58:32 +1000 Subject: [PATCH] Change type for children from ReactElement to ReactNode --- src/FeedbackFish.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FeedbackFish.tsx b/src/FeedbackFish.tsx index c72d6d7..05eb426 100644 --- a/src/FeedbackFish.tsx +++ b/src/FeedbackFish.tsx @@ -1,17 +1,17 @@ -import React, { FunctionComponent, ReactElement } from "react" +import React, { FunctionComponent, ReactNode } from "react" import { useFeedbackFish } from "./useFeedbackFish" type Props = { projectId: Parameters[0] - children?: ReactElement | ((props: object) => ReactElement) + children?: ReactNode | ((props: object) => ReactNode) userId?: string metadata?: { [key: string]: string } } -export const FeedbackFish: FunctionComponent = (props) => { +export const FeedbackFish: FunctionComponent = (props: Props) => { useFeedbackFish(props.projectId) if (!props.children) return null