mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Small code fixes
This commit is contained in:
parent
768748281b
commit
f0a09ba83b
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,9 @@
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
|
import { CommonHooks } from '../../../../../../data';
|
||||||
|
|
||||||
|
const HooksTableBlock = () => {
|
||||||
|
const { webhooks } = CommonHooks.useWebhooks();
|
||||||
|
|
||||||
const HooksTableBlock = ( { webhooks } ) => {
|
|
||||||
return (
|
return (
|
||||||
<table className="ppcp-r-table">
|
<table className="ppcp-r-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -7,15 +7,12 @@ import {
|
||||||
ToggleSettingsBlock,
|
ToggleSettingsBlock,
|
||||||
} from '../../../../../ReusableComponents/SettingsBlocks';
|
} from '../../../../../ReusableComponents/SettingsBlocks';
|
||||||
import SettingsBlock from '../../../../../ReusableComponents/SettingsBlocks/SettingsBlock';
|
import SettingsBlock from '../../../../../ReusableComponents/SettingsBlocks/SettingsBlock';
|
||||||
import { CommonHooks } from '../../../../../../data';
|
|
||||||
|
|
||||||
import SimulationBlock from './SimulationBlock';
|
import SimulationBlock from './SimulationBlock';
|
||||||
import ResubscribeBlock from './ResubscribeBlock';
|
import ResubscribeBlock from './ResubscribeBlock';
|
||||||
import HooksTableBlock from './HooksTableBlock';
|
import HooksTableBlock from './HooksTableBlock';
|
||||||
|
|
||||||
const Troubleshooting = ( { updateFormValue, settings } ) => {
|
const Troubleshooting = ( { updateFormValue, settings } ) => {
|
||||||
const { webhooks } = CommonHooks.useWebhooks();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AccordionSettingsBlock
|
<AccordionSettingsBlock
|
||||||
className="ppcp-r-settings-block--troubleshooting"
|
className="ppcp-r-settings-block--troubleshooting"
|
||||||
|
@ -64,7 +61,7 @@ const Troubleshooting = ( { updateFormValue, settings } ) => {
|
||||||
.
|
.
|
||||||
</Description>
|
</Description>
|
||||||
</Header>
|
</Header>
|
||||||
<HooksTableBlock webhooks={ webhooks } />
|
<HooksTableBlock />
|
||||||
<ResubscribeBlock />
|
<ResubscribeBlock />
|
||||||
<SimulationBlock />
|
<SimulationBlock />
|
||||||
</SettingsBlock>
|
</SettingsBlock>
|
||||||
|
|
|
@ -35,7 +35,7 @@ const defaultPersistent = Object.freeze( {
|
||||||
useManualConnection: false,
|
useManualConnection: false,
|
||||||
clientId: '',
|
clientId: '',
|
||||||
clientSecret: '',
|
clientSecret: '',
|
||||||
webhooks: 0,
|
webhooks: [],
|
||||||
} );
|
} );
|
||||||
|
|
||||||
// Reducer logic.
|
// Reducer logic.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue