mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-31 11:53:44 +08:00
fix: remove unused eslint-disable and use strict equality in kilo-vscode
This commit is contained in:
@@ -55,7 +55,6 @@ interface AssistantMessageProps {
|
||||
|
||||
function TodoToolCard(props: { part: ToolPart }) {
|
||||
const render = ToolRegistry.render(props.part.tool)
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const state = props.part.state as any
|
||||
return (
|
||||
<Show when={render}>
|
||||
|
||||
@@ -9,14 +9,19 @@ const SettingsRow: Component<{ title: string; description?: string; last?: boole
|
||||
"margin-bottom": props.last ? "0" : "8px",
|
||||
"padding-bottom": props.last ? "0" : "8px",
|
||||
"border-bottom": props.last ? "none" : "1px solid var(--border-weak-base)",
|
||||
...(props.description == null ? { "align-items": "center" } : {}),
|
||||
...(props.description === null || props.description === undefined ? { "align-items": "center" } : {}),
|
||||
}}
|
||||
>
|
||||
<div data-slot="settings-row-label">
|
||||
<div data-slot="settings-row-label-title" style={props.description == null ? { "margin-bottom": "0" } : {}}>
|
||||
<div
|
||||
data-slot="settings-row-label-title"
|
||||
style={props.description === null || props.description === undefined ? { "margin-bottom": "0" } : {}}
|
||||
>
|
||||
{props.title}
|
||||
</div>
|
||||
{props.description != null && <div data-slot="settings-row-label-subtitle">{props.description}</div>}
|
||||
{props.description !== null && props.description !== undefined && (
|
||||
<div data-slot="settings-row-label-subtitle">{props.description}</div>
|
||||
)}
|
||||
</div>
|
||||
<div data-slot="settings-row-input">{props.children}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user