Fixed 3 issues:
AdminAutomationEventsPage.tsx — removed the unused _event variable entirely (it was never referenced). AutomationTemplatesPage.tsx — removed FaCopy from the import (no longer used after switching to type: 'copy'). AutomationsPage.tsx — same, removed the now-unused FaCopy import.
This commit is contained in:
parent
d2a2cfbd10
commit
def3ba06de
1 changed files with 4 additions and 4 deletions
|
|
@ -54,6 +54,9 @@ export const DocumentItem: React.FC<DocumentItemProps> = ({
|
|||
const isDownloading = downloadingFiles.has(document.fileId);
|
||||
|
||||
// Create hookData object for action buttons
|
||||
// Note: removeOptimistically is intentionally omitted -- the parent handles
|
||||
// immediate UI removal via deletedDocumentFileIds state in useDashboardInputForm.
|
||||
// If removeOptimistically were a no-op function, DeleteActionButton would skip refetch.
|
||||
const hookData = useMemo(() => ({
|
||||
handleDelete: async (_fileId: string) => {
|
||||
if (onFileDelete) {
|
||||
|
|
@ -62,11 +65,8 @@ export const DocumentItem: React.FC<DocumentItemProps> = ({
|
|||
}
|
||||
return false;
|
||||
},
|
||||
removeOptimistically: () => {
|
||||
// Handled by parent component
|
||||
},
|
||||
refetch: async () => {
|
||||
// Refetch handled by parent
|
||||
// Refetch handled by parent (polling + local state)
|
||||
},
|
||||
deletingItems: deletingFiles,
|
||||
previewingFiles: previewingFiles,
|
||||
|
|
|
|||
Loading…
Reference in a new issue