Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DT-1071] Remove description column from studies #2756

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions src/components/data_search/DatasetSearchTableConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
interface StudyCellWidths{
selected: number;
studyName: string;
description: string;
participants: string;
phenotype: string;
species: string;
Expand All @@ -69,10 +68,9 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
selected: 50,
// subtract the selected column width
studyName: 'calc(25% - 50px)',
description: '20%',
participants: '10%',
phenotype: '15%',
species: '10%',
phenotype: '20%',
species: '15%',
piName: '10%',
dataCustodians: '20%'
};
Expand Down Expand Up @@ -127,20 +125,6 @@ export const makeStudyTableHeaders = (datasets: DatasetTerm[], selected: number[
label: datasets[0].study.studyName
})
},
{
label: 'Description',
sortable: true,
cellStyle: makeHeaderStyle(studyCellWidths.description),
cellDataFn: (datasets) => ({
data: <OverflowTooltip place={'top'} tooltipText={datasets[0].study.description} id={`${datasets[0].study.studyId}-study-description-data`}>
{trimNewlineCharacters(datasets[0].study.description)}
</OverflowTooltip>,
value: datasets[0].study.description,
id: `${datasets[0].study.studyId}-study-description`,
style: makeRowStyle(studyCellWidths.description),
label: datasets[0].study.description
})
},
{
label: 'Participants',
sortable: true,
Expand Down
Loading