mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-11 03:13:12 +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 parent
39ec84a8a9
commit
6f1396cf1e
1 file changed
+2
-2
@@ -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 { Copy } from 'lucide-react';
|
||||||
import type { LogsEntry } from '@/lib/api-client';
|
import type { LogsEntry } from '@/lib/api-client';
|
||||||
import { cn } from '@/lib/utils';
|
import { cn } from '@/lib/utils';
|
||||||
@@ -65,7 +65,7 @@ function LogsRowImpl({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCopyRequestId = async (e: React.MouseEvent) => {
|
const handleCopyRequestId = async (e: MouseEvent) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (!entry.requestId) return;
|
if (!entry.requestId) return;
|
||||||
const ok = await copyText(entry.requestId);
|
const ok = await copyText(entry.requestId);
|
||||||
|
|||||||
Reference in new issue
Block a user