From 6f1396cf1e99dfac460040b0a6a3f5d7f72bec5d Mon Sep 17 00:00:00 2001 From: Tam Nhu Tran Date: Thu, 30 Apr 2026 15:44:36 -0400 Subject: [PATCH] fix(ui): import MouseEvent type explicitly in logs-row PR-Agent flagged that `React.MouseEvent` referenced an unimported `React` namespace; in stricter TypeScript builds this would fail typecheck. Import the type alias from `react` directly. Refs #1138, #1151 --- ui/src/components/logs/logs-row.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/logs/logs-row.tsx b/ui/src/components/logs/logs-row.tsx index 0f966572..8875484a 100644 --- a/ui/src/components/logs/logs-row.tsx +++ b/ui/src/components/logs/logs-row.tsx @@ -1,4 +1,4 @@ -import { memo, useState, type KeyboardEvent } from 'react'; +import { memo, useState, type KeyboardEvent, type MouseEvent } from 'react'; import { Copy } from 'lucide-react'; import type { LogsEntry } from '@/lib/api-client'; import { cn } from '@/lib/utils'; @@ -65,7 +65,7 @@ function LogsRowImpl({ } }; - const handleCopyRequestId = async (e: React.MouseEvent) => { + const handleCopyRequestId = async (e: MouseEvent) => { e.stopPropagation(); if (!entry.requestId) return; const ok = await copyText(entry.requestId);