-
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.
Plans: Extract the default WPCOM plans-intent into a hook (#93502)
- Loading branch information
1 parent
85064a6
commit a7c78ea
Showing
5 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
client/my-sites/plans-features-main/hooks/use-default-wpcom-plans-intent.ts
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,18 @@ | ||
import type { PlansIntent } from '@automattic/plans-grid-next'; | ||
|
||
/** | ||
* Used for defining the default plans intent for general WordPress.com plans UI. | ||
* | ||
* The default intent is used in various scenarios, such as: | ||
* - signup flows / plans page that do not require a tailored plans mix | ||
* - switching to the default plans through an escape hatch (button) when a tailored mix is rendered | ||
* - showing the default plans in the comparison grid when a tailored mix is rendered otherwise | ||
* | ||
* When experimenting with different default plans, this hook can be used to define the intent. | ||
* We will need an exclusion mechanism in that case (to not mix with other intents). | ||
*/ | ||
const useDefaultWpcomPlansIntent = (): PlansIntent | undefined => { | ||
return 'plans-default-wpcom'; | ||
}; | ||
|
||
export default useDefaultWpcomPlansIntent; |
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