diff --git a/website/src/components/UserFeedback/index.tsx b/website/src/components/UserFeedback/index.tsx index 598ead6cce..04f0724173 100644 --- a/website/src/components/UserFeedback/index.tsx +++ b/website/src/components/UserFeedback/index.tsx @@ -131,10 +131,16 @@ const stateReducer = (state: CompleteData, message: Message) => { } }; -export const FeedbackWrapper = ({ seedData, open }) => { +type Props = { + seedData?: InitialData; + open?: boolean; +}; + +export const FeedbackWrapper: React.FC = ({ seedData, open }) => { const { siteConfig: { customFields }, } = useDocusaurusContext(); + const feedbackTargetUrl: string | undefined = (customFields?.unleashFeedbackTargetUrl as string | undefined) ?? (typeof process !== 'undefined' &&