update column name

This commit is contained in:
hamid zarghami
2026-07-19 11:39:31 +03:30
parent 44fd61c039
commit b847dbca69
6 changed files with 135 additions and 39 deletions
+5
View File
@@ -227,6 +227,10 @@ const Workspace: FC = () => {
}
};
const handleColumnTitleUpdated = (columnId: string, title: string) => {
setColumns((prev) => prev.map((column) => (column.id === columnId ? { ...column, title } : column)));
};
if (isPending) {
return <PageLoading />;
}
@@ -249,6 +253,7 @@ const Workspace: FC = () => {
onColumnDrop={handleColumnDrop}
onTaskClick={setSelectedTask}
onColumnDeleted={handleColumnDeleted}
onColumnTitleUpdated={handleColumnTitleUpdated}
/>
))}