Skip to content

Commit

Permalink
update login alert to update text for workspaces only
Browse files Browse the repository at this point in the history
  • Loading branch information
austenem committed Jul 22, 2024
1 parent c3a8a5c commit e0fcfce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion context/app/static/js/shared-styles/alerts/LoginAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ interface LoginAlertProps {
export default function LoginAlert({ featureName }: LoginAlertProps) {
return (
<Alert severity="info" action={<Button href="/login">Log in</Button>}>
You must be logged in to access {featureName}. Access to {featureName} is restricted to HuBMAP members at present.
You must be logged in to access {featureName}.
{featureName === 'workspaces'
? ` At present, access to ${featureName} is restricted to HuBMAP members and invited community members.`
: ` Access to ${featureName} is restricted to HuBMAP members at present.`}
</Alert>
);
}

0 comments on commit e0fcfce

Please sign in to comment.