Skip to content

Commit

Permalink
fix text for DataAccessCellRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrbarnes committed Dec 5, 2024
1 parent 9d07cdf commit 74be612
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ import {
export const DataAccessCellRenderer = ({ value }: CellRenderFunctionProps) => {
if ((value as AccessLevel) === AccessLevel.PENDING) {
return (
<PendingIcon color="green">You have access to this study.</PendingIcon>
<PendingIcon color="yellow">
Your access to this study is pending.
</PendingIcon>
);
}
if ((value as AccessLevel) === AccessLevel.NOT_AVAILABLE) {
return (
<NotAvailableIcon color="green">
You have access to this study.
<NotAvailableIcon color="red">
Cannot determine access to this study. Please contact the study owner.
</NotAvailableIcon>
);
}
Expand All @@ -28,7 +30,7 @@ export const DataAccessCellRenderer = ({ value }: CellRenderFunctionProps) => {
}
if ((value as AccessLevel) === AccessLevel.UNACCESSIBLE) {
return (
<LockedIcon color="green">You have access to this study.</LockedIcon>
<LockedIcon color="red">You do not have access to this study.</LockedIcon>
);
}
return <React.Fragment />;
Expand Down

0 comments on commit 74be612

Please sign in to comment.