Fix lint issues
parent
538032ea94
commit
9e0925beff
|
@ -66,7 +66,7 @@
|
|||
"cmd/test/test_space"
|
||||
],
|
||||
"rules": {
|
||||
"exclude": ["no-explicit-any", "no-slow-types"]
|
||||
"exclude": ["no-explicit-any", "no-slow-types", "jsx-boolean-value"]
|
||||
}
|
||||
},
|
||||
"fmt": {
|
||||
|
|
|
@ -268,7 +268,7 @@ export class HttpServer {
|
|||
}
|
||||
c.status(200);
|
||||
c.header("Content-type", this.clientAssetBundle.getMimeType(assetName));
|
||||
let data = this.clientAssetBundle.readFileSync(
|
||||
const data = this.clientAssetBundle.readFileSync(
|
||||
assetName,
|
||||
);
|
||||
c.header("Content-length", "" + data.length);
|
||||
|
|
|
@ -130,6 +130,7 @@ export function Button({
|
|||
return (
|
||||
<button
|
||||
ref={buttonRef}
|
||||
type="button"
|
||||
className={primary ? "sb-button-primary" : "sb-button"}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
|
|
|
@ -119,6 +119,7 @@ export function TopBar({
|
|||
{actionButtons.map((actionButton) => {
|
||||
const button = (
|
||||
<button
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
@ -132,7 +133,11 @@ export function TopBar({
|
|||
);
|
||||
|
||||
return actionButton.href !== undefined
|
||||
? <a href={actionButton.href}>{button}</a>
|
||||
? (
|
||||
<a href={actionButton.href} key={actionButton.href}>
|
||||
{button}
|
||||
</a>
|
||||
)
|
||||
: button;
|
||||
})}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue