mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-06 01:15:28 +02: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 {
|
const {
|
||||||
siteConfig: { customFields },
|
siteConfig: { customFields },
|
||||||
} = useDocusaurusContext();
|
} = useDocusaurusContext();
|
||||||
|
|
||||||
const feedbackTargetUrl: string | undefined =
|
const feedbackTargetUrl: string | undefined =
|
||||||
(customFields?.unleashFeedbackTargetUrl as string | undefined) ??
|
(customFields?.unleashFeedbackTargetUrl as string | undefined) ??
|
||||||
(typeof process !== 'undefined' &&
|
(typeof process !== 'undefined' &&
|
||||||
|
Loading…
Reference in New Issue
Block a user