💄 Improve webhook details in Troubleshooting tab

This commit is contained in:
Philipp Stracker 2025-01-28 10:47:22 +01:00
parent d09e48df77
commit 4a611cf3b4
No known key found for this signature in database
5 changed files with 28 additions and 2 deletions

View file

@ -13,7 +13,7 @@ const HooksListBlock = () => {
}
return (
<SettingsBlock separatorAndGap={ false }>
<SettingsBlock separatorAndGap={ false } className="ppcp--webhooks">
<WebhookUrl url={ url } />
<WebhookEvents events={ events } />
</SettingsBlock>
@ -37,7 +37,7 @@ const WebhookEvents = ( { events } ) => {
<Title>
{ __( 'Subscribed Events', 'woocommerce-paypal-payments' ) }
</Title>
<ul>
<ul className="ppcp--webhook-list">
{ events.map( ( event, index ) => (
<li key={ index }>{ event }</li>
) ) }

View file

@ -59,6 +59,7 @@ const ResubscribeBlock = () => {
'woocommerce-paypal-payments'
) }
horizontalLayout={ true }
className="ppcp--webhook-resubscribe"
>
<ControlButton
type={ 'secondary' }

View file

@ -116,6 +116,7 @@ const SimulationBlock = () => {
'woocommerce-paypal-payments'
) }
horizontalLayout={ true }
className="ppcp--webhook-simulation"
>
<ControlButton
type={ 'secondary' }