♻️ Implement new store logic in Navigation

This commit is contained in:
Philipp Stracker 2024-11-20 17:01:34 +01:00
parent 40a6514af7
commit df0837b894
No known key found for this signature in database

View file

@ -1,10 +1,8 @@
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import {
useOnboardingStepBusiness,
useOnboardingStepProducts,
} from '../../data';
import data from '../../utils/data';
import { OnboardingHooks } from '../../../../data';
import data from '../../../../utils/data';
const Navigation = ( { setStep, setCompleted, currentStep, stepperOrder } ) => {
const isLastStep = () => currentStep + 1 === stepperOrder.length;
@ -24,8 +22,8 @@ const Navigation = ( { setStep, setCompleted, currentStep, stepperOrder } ) => {
}
};
const { products, toggleProduct } = useOnboardingStepProducts();
const { isCasualSeller, setIsCasualSeller } = useOnboardingStepBusiness();
const { products, toggleProduct } = OnboardingHooks.useProducts();
const { isCasualSeller, setIsCasualSeller } = OnboardingHooks.useBusiness();
let navigationTitle = '';
let disabled = false;