Skip to content

Commit

Permalink
fix: skfp-680 Update translation authorized studies
Browse files Browse the repository at this point in the history
  • Loading branch information
francisl committed Sep 19, 2023
1 parent 19ceca4 commit 3c6d1ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,11 @@ const en = {
authorizedStudies: {
title: 'Authorized Studies {count, plural, =0 {} other {(#)}}',
connectedNotice:
'You have access to the following KIDS FIRST controlled data through your NIH credentials.',
'You have access to the following Kids First controlled data.',
disconnectedNotice:
'Access controlled-access data by connecting your account using your NIH Credentials',
'To access controlled study files, connect to our data repository partners using your NIH credentials.',
disconnect: 'Disconnect',
manageConnections: 'Manage your connections',
noAvailableStudies: 'No available studies',
authorization: 'Authorization',
of: 'of',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ const AuthorizedStudies = ({ id, className = '' }: DashboardCardProps) => {
className={styles.disconnectBtn}
loading={connectionLoading}
>
{intl.get('screen.dashboard.cards.authorizedStudies.disconnect')}
{loadingStudiesForFences.length === 0 ?
intl.get('screen.dashboard.cards.authorizedStudies.disconnect'):
intl.get('screen.dashboard.cards.authorizedStudies.manageConnections')}
</Button>
</Text>
</Space>
Expand Down

0 comments on commit 3c6d1ae

Please sign in to comment.