-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Domains Management Revamp: Add email plans comparison subpage (#97944)
* Add email plans comparison subpage * Fix subpage scrolling * Add table border * Update path
- Loading branch information
Showing
8 changed files
with
109 additions
and
12 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...nt/my-sites/domains/domain-management/subpage-wrapper/headers/compare-email-providers.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { localizeUrl } from '@automattic/i18n-utils'; | ||
import { translate } from 'i18n-calypso'; | ||
import React from 'react'; | ||
import ExternalLink from 'calypso/components/external-link'; | ||
import NavigationHeader from 'calypso/components/navigation-header'; | ||
import { CustomHeaderComponentType } from './custom-header-component-type'; | ||
|
||
export const addDnsRecordTitle = translate( 'Add a new DNS record' ); | ||
export const editDnsRecordTitle = translate( 'Edit DNS record' ); | ||
export const addDnsRecordsSubtitle = translate( | ||
'DNS records change how your domain works. {{a}}Learn more{{/a}}.', | ||
{ | ||
components: { | ||
a: ( | ||
<ExternalLink href={ localizeUrl( 'https://wordpress.com/support/domains/custom-dns/' ) } /> | ||
), | ||
}, | ||
} | ||
); | ||
|
||
const CompareEmailProvidersHeader: CustomHeaderComponentType = ( { | ||
selectedDomainName, | ||
selectedSiteSlug, | ||
} ) => { | ||
return ( | ||
<NavigationHeader | ||
className="navigation-header__breadcrumb" | ||
navigationItems={ [ | ||
{ | ||
label: selectedDomainName, | ||
href: `/domains/manage/all/overview/${ selectedDomainName }/${ selectedSiteSlug }`, | ||
}, | ||
{ | ||
label: translate( 'Email' ), | ||
href: `/domains/manage/all/email/${ selectedDomainName }/${ selectedSiteSlug }`, | ||
}, | ||
{ | ||
label: translate( 'Compare plans' ), | ||
}, | ||
] } | ||
/> | ||
); | ||
}; | ||
|
||
export default CompareEmailProvidersHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters