Skip to content

Commit

Permalink
Add support doc links to account restored banner
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 committed Jan 15, 2025
1 parent 1b424c2 commit a72ce85
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/components/inline-support-link/context-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ const contextLinks = {
link: 'https://wordpress.com/support/user-roles/#adding-users-to-your-site',
post_id: 1221,
},
'invite-people': {
link: 'https://wordpress.com/support/invite-people/',
post_id: 1221,
},
'manage-profile': {
link: 'https://wordpress.com/support/manage-my-profile/',
post_id: 19775,
Expand Down Expand Up @@ -279,6 +283,10 @@ const contextLinks = {
link: 'https://wordpress.com/support/manage-purchases/',
post_id: 111349,
},
'restore-site': {
link: 'https://wordpress.com/support/delete-site/#restore-a-deleted-site',
post_id: 14411,
},
'reusable-blocks': {
link: 'https://wordpress.com/support/wordpress-editor/blocks/reusable-block/',
post_id: 157539,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { NoticeBanner } from '@automattic/components';
import { translate } from 'i18n-calypso';
import { useState } from 'react';
import InlineSupportLink from 'calypso/components/inline-support-link';
import { recordTracksEvent } from 'calypso/state/analytics/actions';

import './styles.scss';
Expand Down Expand Up @@ -35,7 +36,17 @@ export function useRestoreSitesBanner() {
>
<div>
{ translate(
'You’ll need to invite any users that previously had access to your sites.'
`{{restoreSiteLink}}Restore sites{{/restoreSiteLink}} from the action menu. You'll also need to {{invitePeopleLink}}invite any users{{/invitePeopleLink}} that previously had access to your sites.`,
{
components: {
restoreSiteLink: (
<InlineSupportLink showIcon={ false } supportContext="restore-site" />
),
invitePeopleLink: (
<InlineSupportLink showIcon={ false } supportContext="invite-people" />
),
},
}
) }
</div>
</NoticeBanner>
Expand Down

0 comments on commit a72ce85

Please sign in to comment.