refactor(enhanced-kanban): remove unnecessary div wrapper in VirtualizedTaskList component
- Eliminated the redundant div element surrounding the EnhancedKanbanTaskCard to streamline the component structure and improve rendering efficiency.
This commit is contained in:
@@ -38,14 +38,12 @@ const VirtualizedTaskList: React.FC<VirtualizedTaskListProps> = ({
|
||||
onTaskRender?.(task, index);
|
||||
|
||||
return (
|
||||
<div className="virtualized-task-row" style={style}>
|
||||
<EnhancedKanbanTaskCard
|
||||
task={task}
|
||||
isActive={task.id === activeTaskId}
|
||||
isDropTarget={overId === task.id}
|
||||
sectionId={task.status || 'default'}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}, [tasks, activeTaskId, overId, onTaskRender]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user