Skip to content

Commit 1ceb8f1

Browse files
authored
Merge pull request #161 from getsentry/ryan953/enable-feedback-alpha.4
Also sentry-internal
2 parents c1725ea + 3866dc8 commit 1ceb8f1

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

client/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"dependencies": {
4+
"@sentry-internal/feedback": "^8.0.0-alpha.4",
45
"@sentry/browser": "^8.0.0-alpha.4",
56
"jest-environment-jsdom-sixteen": "^2.0.0",
67
"prop-types": "^15.5.10",

client/src/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import * as Sentry from '@sentry/browser';
4+
import { feedbackIntegration, feedbackModalIntegration, feedbackScreenshotIntegration } from "@sentry-internal/feedback";
5+
46

57
import './index.css';
68
import App from './App';
@@ -17,14 +19,14 @@ if (process.env.REACT_APP_SENTRY_DSN) {
1719
tracingOrigins: ['sourcemaps.io']
1820
}),
1921
Sentry.replayIntegration(),
20-
Sentry.feedbackIntegration({
22+
feedbackIntegration({
2123
colorScheme: 'light',
2224
isNameRequired: false,
2325
isEmailRequired: false,
2426
showScreenshot: true
2527
}),
26-
Sentry.feedbackModalIntegration(),
27-
Sentry.feedbackScreenshotIntegration(),
28+
feedbackModalIntegration(),
29+
feedbackScreenshotIntegration(),
2830
]
2931
});
3032
}

0 commit comments

Comments
 (0)