mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
♻️ Greatly improve Navigation component
This commit is contained in:
parent
2b87837345
commit
f4cfabacf9
3 changed files with 66 additions and 98 deletions
|
@ -113,3 +113,13 @@ export const useSteps = () => {
|
|||
|
||||
return { flags, isReady, step, setStep, completed, setCompleted };
|
||||
};
|
||||
|
||||
export const useNavigationState = () => {
|
||||
const products = useProducts();
|
||||
const business = useBusiness();
|
||||
|
||||
return {
|
||||
products,
|
||||
business,
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue