mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🚚 Rename a hook as its responsibility changed
This commit is contained in:
parent
480d15a7fb
commit
68e3cad0e8
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ import { __ } from '@wordpress/i18n';
|
|||
import { useCallback, useEffect, useRef, useState } from '@wordpress/element';
|
||||
|
||||
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
||||
import { useSaveSettings } from '../../../../hooks/useSaveSettings';
|
||||
import { useStoreManager } from '../../../../hooks/useStoreManager';
|
||||
import { CommonHooks } from '../../../../data';
|
||||
import TabBar from '../../../ReusableComponents/TabBar';
|
||||
import classNames from 'classnames';
|
||||
|
@ -20,7 +20,7 @@ const SettingsNavigation = ( {
|
|||
activePanel,
|
||||
setActivePanel,
|
||||
} ) => {
|
||||
const { persistAll } = useSaveSettings();
|
||||
const { persistAll } = useStoreManager();
|
||||
|
||||
const title = __( 'PayPal Payments', 'woocommerce-paypal-payments' );
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
TodosHooks,
|
||||
} from '../data';
|
||||
|
||||
export const useSaveSettings = () => {
|
||||
export const useStoreManager = () => {
|
||||
const { withActivity } = CommonHooks.useBusyState();
|
||||
|
||||
const paymentStore = PaymentHooks.useStore();
|
Loading…
Add table
Add a link
Reference in a new issue