mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +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 { useSaveSettings } from '../../../../hooks/useSaveSettings';
|
||||
|
||||
const SettingsNavigation = ( { canSave = true, tabs, activePanel, setActivePanel } ) => {
|
||||
const SettingsNavigation = ( {
|
||||
canSave = true,
|
||||
tabs,
|
||||
activePanel,
|
||||
setActivePanel,
|
||||
} ) => {
|
||||
const { persistAll } = useSaveSettings();
|
||||
|
||||
const title = __( 'PayPal Payments', 'woocommerce-paypal-payments' );
|
||||
|
||||
return (
|
||||
<TopNavigation title={ title } exitOnTitleClick={ true }
|
||||
tabs={ tabs }
|
||||
activePanel={ activePanel }
|
||||
setActivePanel={ setActivePanel }
|
||||
>
|
||||
<TopNavigation
|
||||
title={ title }
|
||||
exitOnTitleClick={ true }
|
||||
tabs={ tabs }
|
||||
activePanel={ activePanel }
|
||||
setActivePanel={ setActivePanel }
|
||||
>
|
||||
{ canSave && (
|
||||
<Button variant="primary" onClick={ persistAll }>
|
||||
{ __( 'Save', 'woocommerce-paypal-payments' ) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue