Skip to content

Commit 6f08a2c

Browse files
committed
Added status to project tables
Added sorting to all project table columns
1 parent 8c02b24 commit 6f08a2c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • frontend/src/components/tables/ProjectsTable

frontend/src/components/tables/ProjectsTable/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,42 @@ const ProjectsTable = ({ projects, baseURL }) => {
3737
return index + 1
3838
},
3939
id: 'index',
40-
sortType: Sorters.Numeric,
40+
...Sorters.Numeric,
41+
},
42+
{
43+
Header: 'Status',
44+
accessor: 'status',
45+
...Sorters.Alphabetic,
46+
...Filters.ContainsSearch,
4147
},
4248
{
4349
Header: 'Team',
4450
accessor: 'teamCode',
51+
...Sorters.Alphanumeric,
4552
...Filters.ContainsSearch,
4653
},
4754
{
4855
Header: 'Name',
4956
accessor: 'name',
57+
...Sorters.Alphabetic,
5058
...Filters.ContainsSearch,
5159
},
5260
{
5361
Header: 'Punchline',
5462
accessor: 'punchline',
63+
...Sorters.Alphabetic,
5564
...Filters.ContainsSearch,
5665
},
5766
{
5867
Header: 'Demo',
5968
accessor: 'demo',
69+
...Sorters.Alphabetic,
6070
...Filters.ContainsSearch,
6171
},
6272
{
6373
Header: 'Source',
6474
accessor: 'source',
75+
...Sorters.Alphabetic,
6576
...Filters.ContainsSearch,
6677
},
6778
/*

0 commit comments

Comments
 (0)