Skip to content

Commit

Permalink
fixup(browser): update props, typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Nov 12, 2024
1 parent 55ae43f commit baf65ec
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions browser/src/VariantPage/PopulationsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Population = {
}[]
}

type OwnPopulationsTableProps = {
type PopulationsTableProps = {
columnLabels?: {
ac?: string
an?: string
Expand All @@ -106,8 +106,6 @@ type OwnPopulationsTableProps = {

type PopulationsTableState = any

type PopulationsTableProps = OwnPopulationsTableProps & typeof PopulationsTable.defaultProps

export class PopulationsTable extends Component<PopulationsTableProps, PopulationsTableState> {
static defaultProps = {
columnLabels: {},
Expand Down Expand Up @@ -299,15 +297,15 @@ export class PopulationsTable extends Component<PopulationsTableProps, Populatio
})}
{this.renderColumnHeader({
key: 'ac',
label: columnLabels.ac || 'Allele Count',
label: columnLabels?.ac || 'Allele Count',
tooltip: 'Alternate allele count in high quality genotypes',
props: {
className: 'right-align',
},
})}
{this.renderColumnHeader({
key: 'an',
label: columnLabels.an || 'Allele Number',
label: columnLabels?.an || 'Allele Number',
tooltip: 'Total number of called high quality genotypes',
props: {
className: 'right-align',
Expand All @@ -333,7 +331,7 @@ export class PopulationsTable extends Component<PopulationsTableProps, Populatio
})}
{this.renderColumnHeader({
key: 'af',
label: columnLabels.af || 'Allele Frequency',
label: columnLabels?.af || 'Allele Frequency',
tooltip: 'Alternate allele frequency in high quality genotypes',
props: {
style: { paddingLeft: '25px' },
Expand Down

0 comments on commit baf65ec

Please sign in to comment.