-
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.
Domain management: Create add new mailbox subpage (#97847)
* Create add mailbox custom header component * Add subpage key class and update AddMailbox comp style * Extend AddMailbox component to support different use cases * Register new AddMailbox subpage * Update path to support all-domain context * Fix placeholder layout * Redirect back to emails page after checkout * Add missing new-email param --------- Co-authored-by: Paulo Cruz <[email protected]>
- Loading branch information
Showing
8 changed files
with
152 additions
and
10 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
client/my-sites/domains/domain-management/subpage-wrapper/headers/add-mailbox-header.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,41 @@ | ||
import { useTranslate } from 'i18n-calypso'; | ||
import NavigationHeader from 'calypso/components/navigation-header'; | ||
import { | ||
domainManagementAllEmailRoot, | ||
domainManagementOverviewRoot, | ||
} from 'calypso/my-sites/domains/paths'; | ||
import { CustomHeaderComponentType } from './custom-header-component-type'; | ||
|
||
const AddMailboxHeader: CustomHeaderComponentType = ( { | ||
selectedDomainName, | ||
selectedSiteSlug, | ||
} ) => { | ||
const translate = useTranslate(); | ||
return ( | ||
<> | ||
<NavigationHeader | ||
className="navigation-header__breadcrumb" | ||
navigationItems={ [ | ||
{ | ||
label: selectedDomainName, | ||
href: `${ domainManagementOverviewRoot() }/${ selectedDomainName }/${ selectedSiteSlug }`, | ||
}, | ||
{ | ||
label: 'Emails', | ||
href: `${ domainManagementAllEmailRoot() }/${ selectedDomainName }/${ selectedSiteSlug }`, | ||
}, | ||
{ | ||
label: translate( 'Add new mailbox' ), | ||
}, | ||
] } | ||
/> | ||
<NavigationHeader | ||
className="navigation-header__title" | ||
title={ translate( 'Add new Mailboxes' ) } | ||
subtitle={ translate( 'Integrated email solution with powerful features.' ) } | ||
/> | ||
</> | ||
); | ||
}; | ||
|
||
export default AddMailboxHeader; |
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