Skip to content

Commit

Permalink
Update Jetpack Scan link in Jetpack Cloud sidebar (#94951)
Browse files Browse the repository at this point in the history
  • Loading branch information
candy02058912 authored Sep 26, 2024
1 parent 369692f commit 6be3bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const JETPACK_MANAGE_SITES_LINK_NEEDS_ATTENTION = '/sites?issue_types=all
export const JETPACK_MANAGE_SITES_LINK_FAVORITES = '/sites/favorites';
export const JETPACK_MANAGE_PLUGINS_LINK = '/plugins/manage';
export const JETPACK_CLOUD_ACTIVITY_LOG_LINK = '/activity-log';
export const JETPACK_CLOUD_SCAN_HISTORY_LINK = '/scan/history';
export const JETPACK_CLOUD_SCAN_LINK = '/scan';
export const JETPACK_CLOUD_SEARCH_LINK = '/jetpack-search';
export const JETPACK_CLOUD_SOCIAL_LINK = '/jetpack-social';
export const JETPACK_CLOUD_SUBSCRIBERS_LINK = '/subscribers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { getSelectedSiteId, getSelectedSiteSlug } from 'calypso/state/ui/selecto
import {
JETPACK_CLOUD_ACTIVITY_LOG_LINK,
JETPACK_CLOUD_MONETIZE_LINK,
JETPACK_CLOUD_SCAN_HISTORY_LINK,
JETPACK_CLOUD_SCAN_LINK,
JETPACK_CLOUD_SEARCH_LINK,
JETPACK_CLOUD_SOCIAL_LINK,
JETPACK_CLOUD_SUBSCRIBERS_LINK,
Expand Down Expand Up @@ -126,11 +126,11 @@ const useMenuItems = ( {
{
icon: shield,
path: '/',
link: `${ JETPACK_CLOUD_SCAN_HISTORY_LINK }/${ siteSlug }`,
link: `${ JETPACK_CLOUD_SCAN_LINK }/${ siteSlug }`,
title: translate( 'Scan' ),
trackEventName: 'calypso_jetpack_sidebar_scan_history_clicked',
trackEventName: 'calypso_jetpack_sidebar_scan_clicked',
enabled: isAdmin && showScanHistory && ! isWPForTeamsSite,
isSelected: itemLinkMatches( path, `${ JETPACK_CLOUD_SCAN_HISTORY_LINK }/${ siteSlug }` ),
isSelected: itemLinkMatches( path, `${ JETPACK_CLOUD_SCAN_LINK }/${ siteSlug }` ),
},
{
icon: search,
Expand Down

0 comments on commit 6be3bf9

Please sign in to comment.