From 21dad99ac70357adb357ff7ee7dfbdb14ef98d28 Mon Sep 17 00:00:00 2001 From: Igor Klimer Date: Mon, 26 Apr 2021 16:41:16 +0000 Subject: [PATCH 1/4] Domains: Use checkoutless flow for adding mappings on eligible sites --- .../domains/map-domain-step/index.jsx | 6 ++- .../wpcom-undocumented/lib/undocumented.js | 21 ++++++++ client/my-sites/domains/map-domain/index.jsx | 48 ++++++++++++++----- 3 files changed, 62 insertions(+), 13 deletions(-) diff --git a/client/components/domains/map-domain-step/index.jsx b/client/components/domains/map-domain-step/index.jsx index 29f2dcf17167e..497dfb9931949 100644 --- a/client/components/domains/map-domain-step/index.jsx +++ b/client/components/domains/map-domain-step/index.jsx @@ -44,6 +44,7 @@ class MapDomainStep extends React.Component { products: PropTypes.object, cart: PropTypes.object, selectedSite: PropTypes.oneOfType( [ PropTypes.object, PropTypes.bool ] ), + isBusyMapping: PropTypes.bool, initialQuery: PropTypes.string, analyticsSection: PropTypes.string.isRequired, domainsWithPlansOnly: PropTypes.bool.isRequired, @@ -54,6 +55,7 @@ class MapDomainStep extends React.Component { }; static defaultProps = { + isBusyMapping: false, onSave: noop, initialQuery: '', }; @@ -124,7 +126,7 @@ class MapDomainStep extends React.Component { autoFocus // eslint-disable-line jsx-a11y/no-autofocus />