Skip to content

Commit

Permalink
Fix regression: replace Email breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
bogiii committed Jan 15, 2025
1 parent 19b8bd8 commit 93ce6b0
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { translate } from 'i18n-calypso';
import React, { useMemo } from 'react';
import ExternalLink from 'calypso/components/external-link';
import NavigationHeader from 'calypso/components/navigation-header';
import { domainManagementAllOverview } from 'calypso/my-sites/domains/paths';
import { getEmailManagementPath } from 'calypso/my-sites/email/paths';
import { domainManagementAllOverview, domainManagementDns } from 'calypso/my-sites/domains/paths';
import SiteIcon from 'calypso/sites/components/sites-dataviews/site-icon';
import { useSelector } from 'calypso/state';
import getCurrentRoute from 'calypso/state/selectors/get-current-route';
Expand Down Expand Up @@ -46,8 +45,8 @@ const DnsRecordHeader: CustomHeaderComponentType = ( {
),
},
{
label: translate( 'Email' ),
href: getEmailManagementPath( selectedSiteSlug, selectedDomainName, currentRoute ),
label: translate( 'DNS records' ),
href: domainManagementDns( selectedSiteSlug, selectedDomainName, currentRoute ),
},
{
label: context === 'add' ? addDnsRecordTitle : editDnsRecordTitle,
Expand All @@ -66,7 +65,7 @@ const DnsRecordHeader: CustomHeaderComponentType = ( {
}

return baseNavigationItems;
}, [ inSiteContext, selectedDomainName, selectedSiteSlug, site, translate ] );
}, [ context, currentRoute, inSiteContext, selectedDomainName, selectedSiteSlug, site ] );

return (
<NavigationHeader
Expand Down

0 comments on commit 93ce6b0

Please sign in to comment.