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