Skip to content

Commit 6016616

Browse files
authoredAug 10, 2023
PXP-11042: Discovery page update tooltip text (#1382)
1 parent ba6f80a commit 6016616

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
 

‎src/Discovery/Discovery.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
327327
setModalVisible(true);
328328
} else {
329329
// eslint-disable-next-line no-console
330-
console.error(`Could not find study with UID ${studyID}.`);
330+
console.error(`Could not find data with UID ${studyID}.`);
331331
}
332332
}
333333
}, [props.params.studyUID, props.studies]);
@@ -599,7 +599,7 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
599599
overlayClassName='discovery-popover'
600600
placement='topRight'
601601
arrowPointAtCenter
602-
title={'You have access to this study.'}
602+
title={'You have access to this data.'}
603603
content={(
604604
<div className='discovery-popover__text'>
605605
<React.Fragment>You have <code>{ARBORIST_READ_PRIV}</code> access to</React.Fragment>
@@ -622,7 +622,7 @@ const Discovery: React.FunctionComponent<Props> = (props: Props) => {
622622
overlayClassName='discovery-popover'
623623
placement='topRight'
624624
arrowPointAtCenter
625-
title={'You do not have access to this study.'}
625+
title={'You do not have access to this data.'}
626626
content={(
627627
<div className='discovery-popover__text'>
628628
<React.Fragment>You don&apos;t have <code>{ARBORIST_READ_PRIV}</code> access to</React.Fragment>

‎src/Discovery/DiscoveryDetails.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const accessDescriptor = (resource: DiscoveryResource) => {
102102
<Alert
103103
className='discovery-modal__access-alert'
104104
type='success'
105-
message={<React.Fragment><UnlockOutlined /> You have access to this study.</React.Fragment>}
105+
message={<React.Fragment><UnlockOutlined /> You have access to this data.</React.Fragment>}
106106
/>
107107
);
108108
}
@@ -111,15 +111,15 @@ const accessDescriptor = (resource: DiscoveryResource) => {
111111
<Alert
112112
className='discovery-modal__access-alert'
113113
type='warning'
114-
message={<React.Fragment>You do not have access to this study.</React.Fragment>}
114+
message={<React.Fragment>You do not have access to this data.</React.Fragment>}
115115
/>
116116
);
117117
}
118118
return (
119119
<Alert
120120
className='discovery-modal__access-alert'
121121
type='info'
122-
message={<React.Fragment>This study does not include data access authorization details.</React.Fragment>}
122+
message={<React.Fragment>This does not include data access authorization details.</React.Fragment>}
123123
/>
124124
);
125125
};
@@ -401,14 +401,14 @@ const DiscoveryDetails = (props: Props) => {
401401
<Alert
402402
className='discovery-modal__access-alert'
403403
type='success'
404-
message={<React.Fragment><UnlockOutlined /> You have access to this study.</React.Fragment>}
404+
message={<React.Fragment><UnlockOutlined /> You have access to this data.</React.Fragment>}
405405
/>
406406
)
407407
: (
408408
<Alert
409409
className='discovery-modal__access-alert'
410410
type='warning'
411-
message={<React.Fragment>You do not have access to this study.</React.Fragment>}
411+
message={<React.Fragment>You do not have access to this data.</React.Fragment>}
412412
/>
413413
)
414414
)}

0 commit comments

Comments
 (0)