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