mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 08:31:23 -05:00
Include removecurator notification
This commit is contained in:
parent
02a5c0b4df
commit
b4c9e31d30
2 changed files with 27 additions and 0 deletions
|
@ -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}"
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue