Skip to content

Commit 0a2bcb6

Browse files
cursor copy
1 parent 19df553 commit 0a2bcb6

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

frontend/src/components/FileTable.tsx

+12-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const FileTable: ForwardRefRenderFunction<ChildRef, FileTableProps> = (props, re
105105
setCopyRow(true);
106106
setTimeout(() => {
107107
setCopyRow(false);
108-
}, 5000);
108+
}, 3000);
109109
};
110110
const columns = useMemo(
111111
() => [
@@ -593,7 +593,7 @@ const FileTable: ForwardRefRenderFunction<ChildRef, FileTableProps> = (props, re
593593
handleCopy(copied);
594594
}}
595595
>
596-
<ClipboardDocumentIconSolid className={`${copyRow} ? 'cursor-wait': 'cursor`} />
596+
<ClipboardDocumentIconSolid className={`${copyRow ? 'cursor-progress!' : 'cursor'} `} />
597597
</IconButtonWithToolTip>
598598
<IconButtonWithToolTip
599599
onClick={() => {
@@ -616,7 +616,16 @@ const FileTable: ForwardRefRenderFunction<ChildRef, FileTableProps> = (props, re
616616
footer: (info) => info.column.id,
617617
}),
618618
],
619-
[filesData.length, statusFilter, filetypeFilter, llmtypeFilter, fileSourceFilter, isReadOnlyUser, colorMode]
619+
[
620+
filesData.length,
621+
statusFilter,
622+
filetypeFilter,
623+
llmtypeFilter,
624+
fileSourceFilter,
625+
isReadOnlyUser,
626+
colorMode,
627+
copyRow,
628+
]
620629
);
621630

622631
const table = useReactTable({

0 commit comments

Comments
 (0)