From 946f04a8dbd1325961b165890630bc341e027ac9 Mon Sep 17 00:00:00 2001 From: Onur Sumer Date: Mon, 23 Dec 2024 14:51:42 -0500 Subject: [PATCH] revert temp clinical data value casing workaround --- src/pages/studyView/table/ClinicalTable.tsx | 27 ++------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/pages/studyView/table/ClinicalTable.tsx b/src/pages/studyView/table/ClinicalTable.tsx index 5ba5f44d9b9..cf3f7885ba9 100644 --- a/src/pages/studyView/table/ClinicalTable.tsx +++ b/src/pages/studyView/table/ClinicalTable.tsx @@ -15,13 +15,9 @@ import { getFixedHeaderTableMaxLengthStringPixel, } from '../StudyViewUtils'; import { SortDirection } from '../../../shared/components/lazyMobXTable/LazyMobXTable'; -import { - EllipsisTextTooltip, - lowerCaseAndCapitalizeString, -} from 'cbioportal-frontend-commons'; +import { EllipsisTextTooltip } from 'cbioportal-frontend-commons'; import { DEFAULT_SORTING_COLUMN } from '../StudyViewConfig'; import ComparisonVsIcon from 'shared/components/ComparisonVsIcon'; -import { capitalizeFirstLetters } from 'cbioportal-frontend-commons'; export interface IClinicalTableProps { data: ClinicalDataCountSummary[]; @@ -118,23 +114,6 @@ export default class ClinicalTable extends React.Component< return this.props.label ? this.props.label : ColumnKey.CATEGORY; } - // this code should be deleted when we have fixed RFC80 capitalization issues in backedn (12/12/2024) - valueFormatters = { - 'Cancer Type': (str: string) => capitalizeFirstLetters(str), - 'Cancer Type Detailed': (str: string) => capitalizeFirstLetters(str), - 'Sample Type Detailed': (str: string) => capitalizeFirstLetters(str), - }; - - // this code should be deleted when we have fixed RFC80 capitalization issues in backedn (12/12/2024) - @computed get valueFormatter() { - if (this.props.title && this.props.title in this.valueFormatters) { - // @ts-ignore - return this.valueFormatters[this.props.title]; - } else { - return (str: string) => str; - } - } - @computed private get columns() { return [ @@ -165,9 +144,7 @@ export default class ClinicalTable extends React.Component< );