Skip to content

Commit

Permalink
Merge pull request #259 from umccr/minor-burning-ux-fixes-that-must-g…
Browse files Browse the repository at this point in the history
…o-now-now

Added TSO json.gz to predefined search filter i.e. preset chip collection
  • Loading branch information
victorskl authored Apr 28, 2023
2 parents 1d7b13e + def13a1 commit a092893
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/components/search/PresetDataFactory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export class PresetDataFactory {
},
{ key: 12, label: 'tso vcf', keyword: 'tso ctdna .vcf.gz$', style: this.chipStyle },
{ key: 13, label: 'tso tsv', keyword: 'tso ctdna .tsv$', style: this.chipStyle },
{ key: 14, label: 'tso json', keyword: 'tso ctdna .json.gz$', style: this.chipStyle },
];
}
}
2 changes: 1 addition & 1 deletion src/containers/lims/LIMSTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function LIMSTable({ defaultQueryParam, sideBar = false }: Props) {
* TABLE COLUMN PROPERTIES
*/
const textBodyTemplate = (text: string | number | null): React.ReactNode => {
return <div>{text}</div>;
return <>{text}</>;
};
const column_to_display: string[] = [
'illumina_id',
Expand Down
2 changes: 1 addition & 1 deletion src/containers/metadata/MetadataTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function MetadataTable() {
* TABLE COLUMN PROPERTIES
*/
const textBodyTemplate = (text: string | number | null): React.ReactNode => {
return <div>{text}</div>;
return <>{text}</>;
};
const column_to_display: string[] = [
'subject_id',
Expand Down
14 changes: 7 additions & 7 deletions src/containers/subjects/SampleInformationTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ function SampleInformationTable(props: Props) {

// All Information button to show dialog
columnList.push({
alignHeader: 'center' as const,
alignHeader: 'left' as const,
header: (
<p className='uppercase text-center font-bold text-color white-space-nowrap'>
<p className='uppercase text-left font-bold text-color white-space-nowrap'>
{showDisplayText('info')}
</p>
),
className: 'text-center justify-content-center',
className: 'text-left white-space-nowrap',
body: (rowData: ObjectStringValType) => {
return (
<div>
Expand All @@ -90,15 +90,15 @@ function SampleInformationTable(props: Props) {
for (const column of COLUMN_TO_DISPLAY) {
columnList.push({
field: column,
alignHeader: 'center' as const,
alignHeader: 'left' as const,
header: (
<p className='uppercase text-center font-bold text-color white-space-nowrap'>
<p className='uppercase text-left font-bold text-color white-space-nowrap'>
{showDisplayText(column)}
</p>
),
className: 'text-center justify-content-center',
className: 'text-left white-space-nowrap',
body: (rowData: ObjectStringValType) => {
return <div className='text-center text-color'>{rowData[column]}</div>;
return <>{rowData[column]}</>;
},
});
}
Expand Down

0 comments on commit a092893

Please sign in to comment.