mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
💄 Improve webhook details in Troubleshooting tab
This commit is contained in:
parent
d09e48df77
commit
4a611cf3b4
5 changed files with 28 additions and 2 deletions
|
@ -38,6 +38,8 @@ button.components-button, a.components-button {
|
|||
|
||||
/* style the button template */
|
||||
|
||||
text-align: center;
|
||||
|
||||
&:not(:disabled) {
|
||||
@extend %button-style-default;
|
||||
}
|
||||
|
|
|
@ -7,3 +7,25 @@
|
|||
--block-header-gap: 0;
|
||||
--block-separator-size: 0;
|
||||
}
|
||||
|
||||
.ppcp--webhooks {
|
||||
.ppcp--webhook-list li {
|
||||
list-style: none;
|
||||
|
||||
&::before {
|
||||
content: '✔︎';
|
||||
opacity: 0.35;
|
||||
font-size: 0.75em;
|
||||
line-height: 1.35;
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.ppcp--webhook-resubscribe,
|
||||
.ppcp--webhook-simulation {
|
||||
.ppcp--action .components-button {
|
||||
min-width: 160px;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
) ) }
|
||||
|
|
|
@ -59,6 +59,7 @@ const ResubscribeBlock = () => {
|
|||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
horizontalLayout={ true }
|
||||
className="ppcp--webhook-resubscribe"
|
||||
>
|
||||
<ControlButton
|
||||
type={ 'secondary' }
|
||||
|
|
|
@ -116,6 +116,7 @@ const SimulationBlock = () => {
|
|||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
horizontalLayout={ true }
|
||||
className="ppcp--webhook-simulation"
|
||||
>
|
||||
<ControlButton
|
||||
type={ 'secondary' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue