mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
import { __ } from '@wordpress/i18n';
|
|
import SettingsBlock, {
|
|
SETTINGS_BLOCK_STYLING_TYPE_PRIMARY,
|
|
SETTINGS_BLOCK_STYLING_TYPE_SECONDARY,
|
|
SETTINGS_BLOCK_TYPE_SELECT,
|
|
SETTINGS_BLOCK_TYPE_TOGGLE_CONTENT,
|
|
} from '../../../ReusableComponents/SettingsBlock';
|
|
import SettingsCard from '../../../ReusableComponents/SettingsCard';
|
|
import Sandbox from './Blocks/Sandbox';
|
|
import Troubleshooting from './Blocks/Troubleshooting';
|
|
import PaypalSettings from './Blocks/PaypalSettings';
|
|
import OtherSettings from './Blocks/OtherSettings';
|
|
|
|
const ExpertSettings = ( { updateFormValue, settings } ) => {
|
|
return (
|
|
<SettingsCard
|
|
icon="icon-settings-expert.svg"
|
|
className="ppcp-r-settings-card ppcp-r-settings-card--expert-settings"
|
|
title={ __( 'Expert Settings', 'woocommerce-paypal-payments' ) }
|
|
description={ __(
|
|
'Fine-tune your PayPal experience with advanced options.',
|
|
'woocommerce-paypal-payments'
|
|
) }
|
|
actionProps={ {
|
|
callback: updateFormValue,
|
|
key: 'payNowExperience',
|
|
} }
|
|
>
|
|
<Sandbox
|
|
updateFormValue={ updateFormValue }
|
|
settings={ settings }
|
|
/>
|
|
|
|
<Troubleshooting
|
|
updateFormValue={ updateFormValue }
|
|
settings={ settings }
|
|
/>
|
|
|
|
<PaypalSettings
|
|
updateFormValue={ updateFormValue }
|
|
settings={ settings }
|
|
/>
|
|
<OtherSettings
|
|
updateFormValue={ updateFormValue }
|
|
settings={ settings }
|
|
/>
|
|
</SettingsCard>
|
|
);
|
|
};
|
|
|
|
export default ExpertSettings;
|