mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🎨 Minor code cleanup
This commit is contained in:
parent
1726878f55
commit
cd63b18608
2 changed files with 4 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
||||||
import { Button } from '@wordpress/components';
|
import { Button } from '@wordpress/components';
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
|
|
||||||
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
|
||||||
import { CommonHooks, StylingHooks } from '../../../../data';
|
import { CommonHooks, StylingHooks } from '../../../../data';
|
||||||
|
import TopNavigation from '../../../ReusableComponents/TopNavigation';
|
||||||
import BusyStateWrapper from '../../../ReusableComponents/BusyStateWrapper';
|
import BusyStateWrapper from '../../../ReusableComponents/BusyStateWrapper';
|
||||||
|
|
||||||
const SettingsNavigation = () => {
|
const SettingsNavigation = () => {
|
||||||
const { withActivity, isBusy } = CommonHooks.useBusyState();
|
const { withActivity } = CommonHooks.useBusyState();
|
||||||
|
|
||||||
// Todo: Implement other stores here.
|
// Todo: Implement other stores here.
|
||||||
const { persist: persistStyling } = StylingHooks.useStore();
|
const { persist: persistStyling } = StylingHooks.useStore();
|
||||||
|
|
|
@ -41,8 +41,9 @@ const useHooks = () => {
|
||||||
console.error(
|
console.error(
|
||||||
`Trying to access non-existent style property: ${ locationId }.${ prop }. Possibly wrong style name - review the reducer.`
|
`Trying to access non-existent style property: ${ locationId }.${ prop }. Possibly wrong style name - review the reducer.`
|
||||||
);
|
);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return persistentData[ locationId ]?.[ prop ];
|
return persistentData[ locationId ][ prop ];
|
||||||
},
|
},
|
||||||
[ persistentData ]
|
[ persistentData ]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue