mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user