- { todosData.length > 0 && (
-
-
-
- ) }
-
-
-
- { __(
- 'Enable additional features and capabilities on your WooCommerce store.',
- 'woocommerce-paypal-payments'
- ) }
-
-
- { __(
- 'Click Refresh to update your current features after making changes.',
- 'woocommerce-paypal-payments'
- ) }
-
-
- >
- }
- contentItems={ features.map( ( feature ) => {
- return (
-
- ! button.showWhen || // Learn more buttons
- ( feature.enabled &&
- button.showWhen ===
- 'enabled' ) ||
- ( ! feature.enabled &&
- button.showWhen === 'disabled' )
- )
- .map( ( button ) => ( {
- ...button,
- url: button.urls
- ? merchant?.isSandbox
- ? button.urls.sandbox
- : button.urls.live
- : button.url,
- } ) ),
- isBusy: isRefreshing,
- enabled: feature.enabled,
- notes: feature.notes,
- badge: feature.enabled
- ? {
- text: __(
- 'Active',
- 'woocommerce-paypal-payments'
- ),
- type: TITLE_BADGE_POSITIVE,
- }
- : undefined,
- } }
- />
- );
- } ) }
- />
-
-
+
+ { __(
+ 'Enable additional features and capabilities on your WooCommerce store.',
+ 'woocommerce-paypal-payments'
+ ) }
+
+
+ { __(
+ 'Click Refresh to update your current features after making changes.',
+ 'woocommerce-paypal-payments'
+ ) }
+
+
+ >
+ }
+ contentItems={ features.map( ( feature ) => {
+ return (
+ ! button.showWhen || // Learn more buttons
+ ( feature.enabled &&
+ button.showWhen === 'enabled' ) ||
+ ( ! feature.enabled &&
+ button.showWhen === 'disabled' )
+ )
+ .map( ( button ) => ( {
+ ...button,
+ url: button.urls
+ ? merchant?.isSandbox
+ ? button.urls.sandbox
+ : button.urls.live
+ : button.url,
+ } ) ),
+ isBusy: isRefreshing,
+ enabled: feature.enabled,
+ notes: feature.notes,
+ badge: feature.enabled
+ ? {
+ text: __(
+ 'Active',
+ 'woocommerce-paypal-payments'
+ ),
+ type: TITLE_BADGE_POSITIVE,
+ }
+ : undefined,
} }
- />,
- ,
- ] }
- />
-
+ />
+ );
+ } ) }
+ />
);
};
-export default TabOverview;
+const OverviewHelp = () => {
+ return (
+