mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
feat: type feedback component.
This commit is contained in:
parent
1054f74141
commit
756204c529
@ -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<Props> = ({ seedData, open }) => {
|
||||
const {
|
||||
siteConfig: { customFields },
|
||||
} = useDocusaurusContext();
|
||||
|
||||
const feedbackTargetUrl: string | undefined =
|
||||
(customFields?.unleashFeedbackTargetUrl as string | undefined) ??
|
||||
(typeof process !== 'undefined' &&
|
||||
|
Loading…
Reference in New Issue
Block a user