update column name
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
))}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user