|
@@ -2,13 +2,20 @@ import Alert from 'sentry/components/alert';
|
|
|
import ExternalLink from 'sentry/components/links/externalLink';
|
|
|
import {t, tct} from 'sentry/locale';
|
|
|
|
|
|
-export const getFeedbackConfigureDescription = ({link}: {link: string}) =>
|
|
|
+export const getFeedbackConfigureDescription = ({
|
|
|
+ linkConfig,
|
|
|
+ linkButton,
|
|
|
+}: {
|
|
|
+ linkButton: string;
|
|
|
+ linkConfig: string;
|
|
|
+}) =>
|
|
|
tct(
|
|
|
- 'To set up the integration, add the following to your Sentry initialization. There are many options you can pass to the [code:integrations] constructor to customize your form. [break] [break] You can even link the widget to a custom button if you don’t want to use our autoinjected floating button. Learn more about configuring User Feedback by reading the [link:configuration docs].',
|
|
|
+ 'To set up the integration, add the following to your Sentry initialization. There are many options you can pass to the [code:integrations] constructor to customize your form. [break] [break] You can even [linkButton:link the widget to a custom button] if you don’t want to use our auto-injected floating button. Learn more about configuring User Feedback by reading the [linkConfig:configuration docs].',
|
|
|
{
|
|
|
code: <code />,
|
|
|
break: <br />,
|
|
|
- link: <ExternalLink href={link} />,
|
|
|
+ linkConfig: <ExternalLink href={linkConfig} />,
|
|
|
+ linkButton: <ExternalLink href={linkButton} />,
|
|
|
}
|
|
|
);
|
|
|
|
|
@@ -28,7 +35,7 @@ export const getFeedbackSDKSetupSnippet = ({
|
|
|
integrations: [
|
|
|
Sentry.feedbackIntegration({
|
|
|
// Additional SDK configuration goes in here, for example:
|
|
|
-colorScheme: "light",
|
|
|
+colorScheme: "system",
|
|
|
${getFeedbackConfigOptions(feedbackOptions)}}),
|
|
|
],
|
|
|
});`;
|