Include removecurator notification

This commit is contained in:
Paul Kaplan 2021-05-11 11:33:38 -04:00
parent 02a5c0b4df
commit b4c9e31d30
2 changed files with 27 additions and 0 deletions

View file

@ -30,5 +30,6 @@
"studio.activityRemoveProjectStudio": "{profileLink} removed the project {projectLink}",
"studio.activityUpdateStudio": "{profileLink} made edits to the title, thumbnail, or description",
"studio.activityBecomeCurator": "{newCuratorProfileLink} accepted an invitation from {inviterProfileLink} to curate this studio",
"studio.activityRemoveCurator": "{removerProfileLink} removed the curator {removedProfileLink}",
"studio.activityBecomeOwner": "{promotedProfileLink} was promoted to manager by {promotorProfileLink}"
}

View file

@ -115,6 +115,32 @@ const getComponentForItem = item => {
/>
</SocialMessage>
);
case 'removecuratorstudio':
return (
<SocialMessage
datetime={item.datetime_created}
iconSrc="/svgs/studio/activity-curator.svg"
iconAlt="curator activity icon"
imgClassName="studio-activity-icon"
key={item.id}
>
<FormattedMessage
id="studio.activityRemoveCurator"
values={{
removedProfileLink: (
<a href={`/users/${item.username}`}>
{item.username}
</a>
),
removerProfileLink: (
<a href={`/users/${item.actor_username}`}>
{item.actor_username}
</a>
)
}}
/>
</SocialMessage>
);
case 'becomeownerstudio':
return (
<SocialMessage