File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
packages/feedback-screenshot/src Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 11import { convertIntegrationFnToClass , defineIntegration } from '@sentry/core' ;
22import type { Integration , IntegrationClass , IntegrationFn } from '@sentry/types' ;
3- import { Hello } from './screenshotWidget' ;
3+ import { ScreenshotButton } from './screenshotWidget' ;
44import { GLOBAL_OBJ } from '@sentry/utils' ;
55import { h , render } from 'preact' ;
66
@@ -27,7 +27,7 @@ export const _feedbackScreenshotIntegration = ((options: Partial<FeedbackScreens
2727 return { el : options . el || WINDOW . document . createElement ( 'div' ) , props : options . props || null } ;
2828 } ,
2929 renderScreenshotWidget : ( options : FeedbackScreenshotOptions ) => {
30- return render ( < Hello /> , options . el ) ;
30+ return render ( < ScreenshotButton /> , options . el ) ;
3131 } ,
3232 } ;
3333} ) satisfies IntegrationFn ;
Original file line number Diff line number Diff line change 1- import { h } from 'preact' ;
1+ import { h } from 'preact' ;
22
33// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
4- export function Hello ( ) {
5- return < div > Hello 2</ div > ;
4+ export function ScreenshotButton ( ) {
5+ return (
6+ < label htmlFor = "screenshot" className = "form__label" >
7+ < span className = "form__label__text" > Screenshot</ span >
8+ < button class = "btn btn--default" type = "cancel" >
9+ Add
10+ </ button >
11+ </ label >
12+ ) ;
613}
You can’t perform that action at this time.
0 commit comments