From 750a851919519f6e4fa8d87cbf6c0d9e95d05490 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Thu, 23 Jan 2025 19:44:39 +0400 Subject: [PATCH] Implement country based descriptions --- .../SettingsBlocks/FeatureSettingsBlock.js | 13 ++- .../TabSettingsElements/Blocks/Features.js | 17 ++- .../pay-later-messaging-component-data.js | 106 ++++++++++++++++++ 3 files changed, 129 insertions(+), 7 deletions(-) create mode 100644 modules/ppcp-settings/resources/js/data/settings/pay-later-messaging-component-data.js diff --git a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlocks/FeatureSettingsBlock.js b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlocks/FeatureSettingsBlock.js index 3f747bda7..0863257e1 100644 --- a/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlocks/FeatureSettingsBlock.js +++ b/modules/ppcp-settings/resources/js/Components/ReusableComponents/SettingsBlocks/FeatureSettingsBlock.js @@ -19,12 +19,21 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => { ); }; + const renderDescription = () => { + return ( + + ); + }; + const renderButton = ( button ) => { const buttonElement = (