Skip to content

Commit

Permalink
use prefix id constants in filter definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
kne42 committed Aug 28, 2024
1 parent 5e35e13 commit f2be534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IDFilter } from 'app/components/Filters'
import { IdPrefix } from 'app/constants/idPrefixes'
import { QueryParams } from 'app/constants/query'
import { useI18n } from 'app/hooks/useI18n'

Expand All @@ -11,7 +12,7 @@ export function GeneOntologyFilter() {
title={t('filterByGeneOntologyId')}
label={t('goId')}
queryParam={QueryParams.GoId}
prefix="GO:"
prefix={IdPrefix.GeneOntology}
/>
)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IDFilter } from 'app/components/Filters'
import { IdPrefix } from 'app/constants/idPrefixes'
import { QueryParams } from 'app/constants/query'
import { useI18n } from 'app/hooks/useI18n'

Expand All @@ -11,7 +12,7 @@ export function DepositionIdFilter() {
title={t('filterByDepositionId')}
label={t('depositionId')}
queryParam={QueryParams.DepositionId}
prefix="CZCDP-"
prefix={IdPrefix.Deposition}
/>
)
}

0 comments on commit f2be534

Please sign in to comment.