Skip to content

Commit

Permalink
Testing cypress fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Dec 12, 2024
1 parent 74361d5 commit e7e7c10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/advancedSettings/JetpackBoost/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ import SingleOption from './SingleOption';
import InstallActivatePluginButton from './InstallActivatePluginButton';

const JetpackBoost = ( { methods, constants } ) => {

const currentUrl = window.location.href;
const siteUrl = currentUrl.split('/wp-admin/')[0];
const siteUrl = currentUrl.split( '/wp-admin/' )[ 0 ];

const fields = [
{
Expand All @@ -26,7 +25,7 @@ const JetpackBoost = ( { methods, constants } ) => {
// translators: %1$s is the opening <a> tag, %2$s is the closing </a> tag.
__( 'Discover more %1$shere%2$s', 'wp-module-performance' ),
'<a href="' +
siteUrl +
siteUrl +
'/wp-admin/admin.php?page=jetpack-boost">',
'</a>'
),
Expand All @@ -44,8 +43,7 @@ const JetpackBoost = ( { methods, constants } ) => {
value: NewfoldRuntime.sdk.performance.jetpack_boost_critical_css,
type: 'toggle',
premiumUrl:
siteUrl +
'/wp-admin/admin.php?page=jetpack-boost#upgrade',
siteUrl + '/wp-admin/admin.php?page=jetpack-boost#upgrade',
showOnModuleDisabled: false,
},
{
Expand Down Expand Up @@ -107,7 +105,9 @@ const JetpackBoost = ( { methods, constants } ) => {
constants={ constants }
setModuleStatus={ setModuleStatus }
/>
<FeatureUpsell>
<FeatureUpsell
cardText={ __( 'Installing', 'wp-module-performance' ) }
>
{ fields.map( ( field ) => {
if ( field.showOnModuleDisabled ) {
return (
Expand Down

0 comments on commit e7e7c10

Please sign in to comment.