修复警告和错误
This commit is contained in:
@@ -75,6 +75,7 @@ function AccountRow({
|
||||
return (
|
||||
<div className="flex items-center gap-3 rounded-lg border bg-muted/10 px-3 py-2.5">
|
||||
{account.avatar_url ? (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
src={account.avatar_url}
|
||||
alt={account.username}
|
||||
|
||||
@@ -1561,7 +1561,7 @@ export function AcpConnectionsProvider({ children }: { children: ReactNode }) {
|
||||
const title = fn ? `${fn} - Codeg` : "Codeg"
|
||||
notifyTurnComplete(
|
||||
title,
|
||||
t("notificationTurnComplete", { agent: agentLabel }),
|
||||
t("notificationTurnComplete", { agent: agentLabel })
|
||||
).catch(() => {})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { invoke } from "@tauri-apps/api/core"
|
||||
|
||||
export async function notifyTurnComplete(
|
||||
title: string,
|
||||
body: string,
|
||||
body: string
|
||||
): Promise<void> {
|
||||
if (!document.hidden) return
|
||||
await invoke("send_notification", { title, body })
|
||||
|
||||
Reference in New Issue
Block a user