feat(subtask-table): add titles to table columns for better clarity
This commit is contained in:
@@ -166,9 +166,11 @@ const SubTaskTable = ({ subTasks, loadingSubTasks, refreshSubTasks, t }: SubTask
|
|||||||
{
|
{
|
||||||
key: 'name',
|
key: 'name',
|
||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
|
title: 'Name',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'priority',
|
key: 'priority',
|
||||||
|
title: 'Priority',
|
||||||
render: (record: IProjectTask) => (
|
render: (record: IProjectTask) => (
|
||||||
<Tag
|
<Tag
|
||||||
color={themeMode === 'dark' ? record.priority_color_dark : record.priority_color}
|
color={themeMode === 'dark' ? record.priority_color_dark : record.priority_color}
|
||||||
@@ -180,6 +182,7 @@ const SubTaskTable = ({ subTasks, loadingSubTasks, refreshSubTasks, t }: SubTask
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'status',
|
key: 'status',
|
||||||
|
title: 'Status',
|
||||||
render: (record: IProjectTask) => (
|
render: (record: IProjectTask) => (
|
||||||
<Tag
|
<Tag
|
||||||
color={themeMode === 'dark' ? record.status_color_dark : record.status_color}
|
color={themeMode === 'dark' ? record.status_color_dark : record.status_color}
|
||||||
@@ -191,10 +194,12 @@ const SubTaskTable = ({ subTasks, loadingSubTasks, refreshSubTasks, t }: SubTask
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'assignee',
|
key: 'assignee',
|
||||||
|
title: 'Assignees',
|
||||||
render: (record: ISubTask) => <Avatars members={record.names || []} />,
|
render: (record: ISubTask) => <Avatars members={record.names || []} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'actionBtns',
|
key: 'actionBtns',
|
||||||
|
title: 'Actions',
|
||||||
width: 80,
|
width: 80,
|
||||||
render: (record: IProjectTask) => (
|
render: (record: IProjectTask) => (
|
||||||
<Flex gap={8} align="center" className="action-buttons">
|
<Flex gap={8} align="center" className="action-buttons">
|
||||||
@@ -230,7 +235,6 @@ const SubTaskTable = ({ subTasks, loadingSubTasks, refreshSubTasks, t }: SubTask
|
|||||||
{subTasks.length > 0 && (
|
{subTasks.length > 0 && (
|
||||||
<Table
|
<Table
|
||||||
className="custom-two-colors-row-table subtask-table"
|
className="custom-two-colors-row-table subtask-table"
|
||||||
showHeader={false}
|
|
||||||
dataSource={subTasks}
|
dataSource={subTasks}
|
||||||
columns={columns}
|
columns={columns}
|
||||||
rowKey={record => record?.id || nanoid()}
|
rowKey={record => record?.id || nanoid()}
|
||||||
|
|||||||
Reference in New Issue
Block a user