diff --git a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlock.js b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlock.js
index 2c92942c7..f71d70528 100644
--- a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlock.js
+++ b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlock.js
@@ -15,22 +15,6 @@ const SettingsBlock = ( {
'ppcp--horizontal': horizontalLayout,
} );
- const BlockTitle = ( { blockTitle, blockSuffix, blockDescription } ) => {
- if ( ! blockTitle && ! blockDescription ) {
- return null;
- }
-
- return (
-
-
- { blockTitle }
- { blockSuffix }
-
- { blockDescription }
-
- );
- };
-
return (
{
+ if ( ! blockTitle && ! blockDescription ) {
+ return null;
+ }
+
+ return (
+
+
+ { blockTitle }
+ { blockSuffix }
+
+ { blockDescription }
+
+ );
+};
diff --git a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsCard.js b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsCard.js
index d2d408cd1..97db00c2f 100644
--- a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsCard.js
+++ b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsCard.js
@@ -16,14 +16,6 @@ const SettingsCard = ( {
id,
};
- const InnerContent = ( { showCards, children: containerItems } ) => {
- if ( showCards ) {
- return { containerItems };
- }
-
- return containerItems;
- };
-
return (
@@ -45,3 +37,11 @@ const SettingsCard = ( {
};
export default SettingsCard;
+
+const InnerContent = ( { showCards, children } ) => {
+ if ( showCards ) {
+ return { children };
+ }
+
+ return children;
+};