mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix CS
This commit is contained in:
parent
ede2cb51b3
commit
2f99866267
1 changed files with 13 additions and 6 deletions
|
@ -4,17 +4,24 @@ import { __ } from '@wordpress/i18n';
|
||||||
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
||||||
import { useSaveSettings } from '../../../../hooks/useSaveSettings';
|
import { useSaveSettings } from '../../../../hooks/useSaveSettings';
|
||||||
|
|
||||||
const SettingsNavigation = ( { canSave = true, tabs, activePanel, setActivePanel } ) => {
|
const SettingsNavigation = ( {
|
||||||
|
canSave = true,
|
||||||
|
tabs,
|
||||||
|
activePanel,
|
||||||
|
setActivePanel,
|
||||||
|
} ) => {
|
||||||
const { persistAll } = useSaveSettings();
|
const { persistAll } = useSaveSettings();
|
||||||
|
|
||||||
const title = __( 'PayPal Payments', 'woocommerce-paypal-payments' );
|
const title = __( 'PayPal Payments', 'woocommerce-paypal-payments' );
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TopNavigation title={ title } exitOnTitleClick={ true }
|
<TopNavigation
|
||||||
tabs={ tabs }
|
title={ title }
|
||||||
activePanel={ activePanel }
|
exitOnTitleClick={ true }
|
||||||
setActivePanel={ setActivePanel }
|
tabs={ tabs }
|
||||||
>
|
activePanel={ activePanel }
|
||||||
|
setActivePanel={ setActivePanel }
|
||||||
|
>
|
||||||
{ canSave && (
|
{ canSave && (
|
||||||
<Button variant="primary" onClick={ persistAll }>
|
<Button variant="primary" onClick={ persistAll }>
|
||||||
{ __( 'Save', 'woocommerce-paypal-payments' ) }
|
{ __( 'Save', 'woocommerce-paypal-payments' ) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue