From 13468013adea88c01a2ec7c31e284df3e6874e25 Mon Sep 17 00:00:00 2001
From: Jeremy Herve
Date: Fri, 4 Mar 2022 11:20:24 +0100
Subject: [PATCH] Replace all isPrimary references
We use variant instead, since https://github.com/WordPress/gutenberg/pull/31713/
---
projects/plugins/jetpack/extensions/blocks/amazon/edit.js | 2 +-
.../plugins/jetpack/extensions/blocks/anchor-fm/editor.js | 2 +-
.../jetpack/extensions/blocks/button/button-width-panel.js | 2 +-
.../blocks/contact-form/components/jetpack-field-width.js | 2 +-
.../plugins/jetpack/extensions/blocks/conversation/edit.js | 2 +-
.../jetpack/extensions/blocks/instagram-gallery/edit.js | 2 +-
.../jetpack/extensions/blocks/podcast-player/edit.js | 2 +-
.../jetpack/extensions/blocks/recurring-payments/edit.jsx | 4 ++--
.../jetpack/extensions/blocks/social-previews/upgrade.js | 2 +-
.../extensions/blocks/videopress/resumable-upload/index.js | 2 +-
.../shared/external-media/media-browser/index.js | 7 ++++++-
.../sources/google-photos/google-photos-auth.js | 2 +-
.../extensions/shared/external-media/sources/pexels.js | 2 +-
13 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/projects/plugins/jetpack/extensions/blocks/amazon/edit.js b/projects/plugins/jetpack/extensions/blocks/amazon/edit.js
index 0a8f1ac9f67f2..2e77b988e9c1e 100644
--- a/projects/plugins/jetpack/extensions/blocks/amazon/edit.js
+++ b/projects/plugins/jetpack/extensions/blocks/amazon/edit.js
@@ -222,7 +222,7 @@ function AmazonEdit( {
) }
-
+
{ isConnecting && __( 'Connecting…', 'jetpack' ) }
{ isRequestingUserConnections && __( 'Loading your connections…', 'jetpack' ) }
{ ! isConnecting &&
diff --git a/projects/plugins/jetpack/extensions/blocks/podcast-player/edit.js b/projects/plugins/jetpack/extensions/blocks/podcast-player/edit.js
index 5612c0d920e49..c911884d2781f 100644
--- a/projects/plugins/jetpack/extensions/blocks/podcast-player/edit.js
+++ b/projects/plugins/jetpack/extensions/blocks/podcast-player/edit.js
@@ -284,7 +284,7 @@ const PodcastPlayerEdit = ( {
className={ 'components-placeholder__input' }
onChange={ editedUrl => dispatch( { type: actions.EDIT_URL, payload: editedUrl } ) }
/>
-
+
{ __( 'Embed', 'jetpack' ) }
diff --git a/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx b/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx
index eb8080c2c3f8a..2bddde23769ed 100644
--- a/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx
+++ b/projects/plugins/jetpack/extensions/blocks/recurring-payments/edit.jsx
@@ -212,7 +212,7 @@ export class MembershipsButtonEdit extends Component {
if ( this.state.addingMembershipAmount === PRODUCT_NOT_ADDING && ! forceShowForm ) {
return (
this.setState( { addingMembershipAmount: PRODUCT_FORM } ) }
>
{ __( 'Add a payment plan', 'jetpack' ) }
@@ -290,7 +290,7 @@ export class MembershipsButtonEdit extends Component {
/>
diff --git a/projects/plugins/jetpack/extensions/blocks/social-previews/upgrade.js b/projects/plugins/jetpack/extensions/blocks/social-previews/upgrade.js
index 12a4862920f29..d8c6af04f943f 100644
--- a/projects/plugins/jetpack/extensions/blocks/social-previews/upgrade.js
+++ b/projects/plugins/jetpack/extensions/blocks/social-previews/upgrade.js
@@ -59,7 +59,7 @@ export default function SocialPreviewsUpgrade() {
- restartUpload() }>
+ restartUpload() }>
{ __( 'Try again', 'jetpack' ) }
-
+
{ label }
diff --git a/projects/plugins/jetpack/extensions/shared/external-media/sources/google-photos/google-photos-auth.js b/projects/plugins/jetpack/extensions/shared/external-media/sources/google-photos/google-photos-auth.js
index 4b5f57a9542f2..73d982a2cf09c 100644
--- a/projects/plugins/jetpack/extensions/shared/external-media/sources/google-photos/google-photos-auth.js
+++ b/projects/plugins/jetpack/extensions/shared/external-media/sources/google-photos/google-photos-auth.js
@@ -51,7 +51,7 @@ function GooglePhotosAuth( props ) {
{ isAuthing ?
:
}
-
+
{ __( 'Connect to Google Photos', 'jetpack' ) }
diff --git a/projects/plugins/jetpack/extensions/shared/external-media/sources/pexels.js b/projects/plugins/jetpack/extensions/shared/external-media/sources/pexels.js
index 068fad604caca..4678bf8cf4849 100644
--- a/projects/plugins/jetpack/extensions/shared/external-media/sources/pexels.js
+++ b/projects/plugins/jetpack/extensions/shared/external-media/sources/pexels.js
@@ -91,7 +91,7 @@ function PexelsMedia( props ) {
disabled={ !! isCopying }
/>