Skip to content

Commit

Permalink
Austenem/CAT-897 remove collections columns (#3557)
Browse files Browse the repository at this point in the history
* remove contacts and modified columns

* add changelog
  • Loading branch information
austenem authored Oct 4, 2024
1 parent af196d9 commit 1e6df85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-remove-collections-columns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Remove "Contact" and "Last Modified" columns from the Datasets table on Collections pages.
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
import { useSearchHits } from 'js/hooks/useSearchData';
import { getIDsQuery } from 'js/helpers/queries';
import {
lastModifiedTimestampCol,
organCol,
dataTypesCol,
statusCol,
} from 'js/components/detailPage/derivedEntities/columns';
import { Dataset, Entity } from 'js/components/types';
import { organCol, dataTypesCol, statusCol } from 'js/components/detailPage/derivedEntities/columns';
import { Dataset } from 'js/components/types';
import { RelatedEntitiesColumn } from 'js/components/detailPage/related-entities/RelatedEntitiesTable/RelatedEntitiesTable';

const columns = [
organCol,
dataTypesCol,
lastModifiedTimestampCol,
{
id: 'created_by_user_displayname',
label: 'Contact',
renderColumnCell: ({ created_by_user_displayname }: Partial<Entity>) => created_by_user_displayname,
},
statusCol,
] as RelatedEntitiesColumn[];
const columns = [organCol, dataTypesCol, statusCol] as RelatedEntitiesColumn[];

interface CollectionDatasetsHook {
ids: string[];
Expand Down

0 comments on commit 1e6df85

Please sign in to comment.