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 1
1
import { convertIntegrationFnToClass , defineIntegration } from '@sentry/core' ;
2
2
import type { Integration , IntegrationClass , IntegrationFn } from '@sentry/types' ;
3
- import { Hello } from './screenshotWidget' ;
3
+ import { ScreenshotButton } from './screenshotWidget' ;
4
4
import { GLOBAL_OBJ } from '@sentry/utils' ;
5
5
import { h , render } from 'preact' ;
6
6
@@ -27,7 +27,7 @@ export const _feedbackScreenshotIntegration = ((options: Partial<FeedbackScreens
27
27
return { el : options . el || WINDOW . document . createElement ( 'div' ) , props : options . props || null } ;
28
28
} ,
29
29
renderScreenshotWidget : ( options : FeedbackScreenshotOptions ) => {
30
- return render ( < Hello /> , options . el ) ;
30
+ return render ( < ScreenshotButton /> , options . el ) ;
31
31
} ,
32
32
} ;
33
33
} ) satisfies IntegrationFn ;
Original file line number Diff line number Diff line change 1
- import { h } from 'preact' ;
1
+ import { h } from 'preact' ;
2
2
3
3
// 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
+ ) ;
6
13
}
You can’t perform that action at this time.
0 commit comments