Skip to content

Commit

Permalink
feat: CQDG-611 fix maxLimit tooltip (#249)
Browse files Browse the repository at this point in the history
* feat: CQDG-611 fix maxLimit tooltip
  • Loading branch information
atoulous authored Mar 4, 2024
1 parent 542bf98 commit df78ddf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

&:hover {
cursor: default;
color: $red-6;
}

.infoCircle {
Expand Down
6 changes: 3 additions & 3 deletions src/components/uiKit/SetsManagementDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ const getMenuProps = ({
<Tooltip
arrowPointAtCenter
placement="topRight"
title={`Max. ${numberFormat(MAX_ITEMS_QUERY)} ${intl.get(
'screen.dataExploration.participantCount',
)}`}
title={intl.get('screen.dataExploration.maxLimit', {
limit: numberFormat(MAX_ITEMS_QUERY),
})}
>
<InfoCircleOutlined className={styles.infoCircle} />
</Tooltip>
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ const en = {
participantsSelected: 'participants selected',
participantSelected: 'participant selected',
saveParticipantsSet: 'Save participant set',
participantCount: 'items at a time. The first 10,000 will be processed.',
maxLimit: 'Max. {limit} items at a time. The first {limit} will be processed.',
filesSelected: 'files selected',
fileSelected: 'file selected',
saveFilesSet: 'Save file set',
Expand Down
4 changes: 1 addition & 3 deletions src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1073,8 +1073,6 @@ const fr = {
study_code: 'Étude',
sample_type: "Type d'échantillon",
biospecimen_tissue_source: 'Tissue',
age_biospecimen_collection: 'Âge',
age_biospecimen_collectionTooltip: 'Âge au prélèvement du biospécimen',
files: 'Fichiers',
},
datafiles: {
Expand Down Expand Up @@ -1102,7 +1100,7 @@ const fr = {
participantsSelected: 'participants séléctionnés',
participantSelected: 'participant séléctionné',
saveParticipantsSet: "Enregistrer l'ensemble de participants",
participantCount: 'éléments à la fois. Les 10 000 premiers seront traités.',
maxLimit: 'Max. {limit} éléments à la fois. Les {limit} premiers seront traités.',
filesSelected: 'fichiers séléctionnés',
fileSelected: 'fichier séléctionné',
saveFilesSet: "Enregistrer l'ensemble de fichiers",
Expand Down

0 comments on commit df78ddf

Please sign in to comment.