diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/HooksTableBlock.js b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/HooksTableBlock.js index 617ceb535..856f1969d 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/HooksTableBlock.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/HooksTableBlock.js @@ -1,5 +1,6 @@ import { __ } from '@wordpress/i18n'; import { CommonHooks } from '../../../../../../data'; +import { Title } from '../../../../../ReusableComponents/SettingsBlocks'; const HooksTableBlock = () => { const { webhooks } = CommonHooks.useWebhooks(); @@ -10,31 +11,36 @@ const HooksTableBlock = () => { } return ( - - - - - - - - - - - - - -
- { __( 'URL', 'woocommerce-paypal-payments' ) } - - { __( - 'Tracked events', - 'woocommerce-paypal-payments' - ) } -
{ url } - { events.map( ( event, index ) => ( -
{ event }
- ) ) } -
+ <> + + + + ); +}; + +const WebhookUrl = ( { url } ) => { + return ( +
+ + { __( 'Notification URL', 'woocommerce-paypal-payments' ) } + +

{ url }

+
+ ); +}; + +const WebhookEvents = ( { events } ) => { + return ( +
+ + { __( 'Subscribed Events', 'woocommerce-paypal-payments' ) } + +
    + { events.map( ( event, index ) => ( +
  • { event }
  • + ) ) } +
+
); }; diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/Troubleshooting.js b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/Troubleshooting.js index 546659b1f..4dc0d1fc6 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/Troubleshooting.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabSettingsElements/Blocks/Troubleshooting/Troubleshooting.js @@ -42,10 +42,7 @@ const Troubleshooting = ( { updateFormValue, settings } ) => {
- { __( - 'Subscribed PayPal webhooks', - 'woocommerce-paypal-payments' - ) } + { __( 'Webhooks', 'woocommerce-paypal-payments' ) } { __(