File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 6666 " cmd/test/test_space"
6767 ],
6868 "rules" : {
69- "exclude" : [" no-explicit-any" , " no-slow-types" ]
69+ "exclude" : [" no-explicit-any" , " no-slow-types" , " jsx-boolean-value " ]
7070 }
7171 },
7272 "fmt" : {
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ export class HttpServer {
268268 }
269269 c . status ( 200 ) ;
270270 c . header ( "Content-type" , this . clientAssetBundle . getMimeType ( assetName ) ) ;
271- let data = this . clientAssetBundle . readFileSync (
271+ const data = this . clientAssetBundle . readFileSync (
272272 assetName ,
273273 ) ;
274274 c . header ( "Content-length" , "" + data . length ) ;
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ export function Button({
130130 return (
131131 < button
132132 ref = { buttonRef }
133+ type = "button"
133134 className = { primary ? "sb-button-primary" : "sb-button" }
134135 onClick = { ( e ) => {
135136 e . stopPropagation ( ) ;
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ export function TopBar({
119119 { actionButtons . map ( ( actionButton ) => {
120120 const button = (
121121 < button
122+ type = "button"
122123 onClick = { ( e ) => {
123124 e . preventDefault ( ) ;
124125 e . stopPropagation ( ) ;
@@ -132,7 +133,11 @@ export function TopBar({
132133 ) ;
133134
134135 return actionButton . href !== undefined
135- ? < a href = { actionButton . href } > { button } </ a >
136+ ? (
137+ < a href = { actionButton . href } key = { actionButton . href } >
138+ { button }
139+ </ a >
140+ )
136141 : button ;
137142 } ) }
138143 </ div >
You can’t perform that action at this time.
0 commit comments