Skip to content

Commit

Permalink
refactor: move logic to premium
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Sep 12, 2024
1 parent 1584e5a commit 76ba79a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions packages/js/src/components/contentAnalysis/SeoAnalysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ export default withSelect( ( select, ownProps ) => {
getMarksButtonStatus,
getResultsForKeyword,
getIsElementorEditor,
getPreference,
} = select( "yoast-seo/editor" );

const keyword = getFocusKeyphrase();
Expand All @@ -334,6 +333,6 @@ export default withSelect( ( select, ownProps ) => {
marksButtonStatus: ownProps.hideMarksButtons ? "disabled" : getMarksButtonStatus(),
keyword,
isElementor: getIsElementorEditor(),
isAiFeatureEnabled: getPreference( "isAiFeatureActive", false ),
isAiFeatureEnabled: select( "yoast-seo-premium/editor" )?.getIsAiFeatureEnabled(),
};
} )( SeoAnalysis );
1 change: 0 additions & 1 deletion packages/js/src/redux/reducers/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function getDefaultState() {
isWincherIntegrationActive: isWincherIntegrationActive(),
isInsightsEnabled: get( window, "wpseoScriptData.metabox.isInsightsEnabled", false ),
isNewsEnabled: get( window, "wpseoScriptData.metabox.isNewsSeoActive", false ),
isAiFeatureActive: Boolean( window.wpseoAdminL10n.isAiFeatureActive ),
isWooCommerceSeoActive: get( window, "wpseoScriptData.metabox.isWooCommerceSeoActive", false ),
isWooCommerceActive: get( window, "wpseoScriptData.metabox.isWooCommerceActive", false ),
};
Expand Down

0 comments on commit 76ba79a

Please sign in to comment.