File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
packages/email/.storybook Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
export class ChangeView extends HTMLElement {
4
4
static tag = "x-change-view" as const ;
5
- static define ( ) {
6
- customElements . define ( ChangeView . tag , this ) ;
5
+ static {
6
+ customElements . define ( this . tag , this ) ;
7
7
}
8
+
8
9
constructor ( ) {
9
10
super ( ) ;
10
11
this . attachShadow ( { mode : "open" } ) ;
@@ -46,8 +47,6 @@ export class ChangeView extends HTMLElement {
46
47
}
47
48
}
48
49
49
- ChangeView . define ( ) ;
50
-
51
50
function ChangeViewUI ( { view } : { view : string } ) {
52
51
return (
53
52
< nav >
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ type SendEmailOptions = {
14
14
15
15
export class SendEmailFormWebComponent extends HTMLElement {
16
16
static tag = "x-send-email-form" as const ;
17
- static define ( ) {
18
- customElements . define ( SendEmailFormWebComponent . tag , this ) ;
17
+ static {
18
+ customElements . define ( this . tag , this ) ;
19
19
}
20
20
static BREVO_API_KEY = import . meta. env [ "VITE_BREVO_API_KEY" ] ;
21
21
@@ -138,5 +138,3 @@ export class SendEmailFormWebComponent extends HTMLElement {
138
138
return element as HTMLInputElement ;
139
139
}
140
140
}
141
-
142
- SendEmailFormWebComponent . define ( ) ;
You can’t perform that action at this time.
0 commit comments