🎨 Standardize imports, remove unneccesary consts

This commit is contained in:
Philipp Stracker 2024-10-31 14:44:45 +01:00
parent 37beb591d5
commit 847bce3510
No known key found for this signature in database
4 changed files with 9 additions and 14 deletions

View file

@ -1,6 +1,3 @@
export const PAGE_ONBOARDING = 'onboarding';
export const PAGE_SETTINGS = 'settings';
const Container = ( { isCard = true, page, children } ) => {
let className = 'ppcp-r-container';

View file

@ -1,16 +1,14 @@
import Container, {
PAGE_ONBOARDING,
} from '../../ReusableComponents/Container.js';
import StepWelcome from './StepWelcome.js';
import StepBusiness from './StepBusiness.js';
import StepProducts from './StepProducts.js';
import Container from '../../ReusableComponents/Container';
import StepWelcome from './StepWelcome';
import StepBusiness from './StepBusiness';
import StepProducts from './StepProducts';
import { useOnboardingStep } from '../../../data';
const Onboarding = () => {
const { step, setStep, setCompleted } = useOnboardingStep();
return (
<Container page={ PAGE_ONBOARDING }>
<Container page="onboarding">
<div className="ppcp-r-card">
<OnboardingStep
currentStep={ step }

View file

@ -1,6 +1,6 @@
import OnboardingHeader from '../../ReusableComponents/OnboardingHeader.js';
import SelectBoxWrapper from '../../ReusableComponents/SelectBoxWrapper.js';
import SelectBox from '../../ReusableComponents/SelectBox.js';
import OnboardingHeader from '../../ReusableComponents/OnboardingHeader';
import SelectBoxWrapper from '../../ReusableComponents/SelectBoxWrapper';
import SelectBox from '../../ReusableComponents/SelectBox';
import { __ } from '@wordpress/i18n';
import PaymentMethodIcons from '../../ReusableComponents/PaymentMethodIcons';
import { useOnboardingStepBusiness } from '../../../data';

View file

@ -1,4 +1,4 @@
import OnboardingHeader from '../../ReusableComponents/OnboardingHeader.js';
import OnboardingHeader from '../../ReusableComponents/OnboardingHeader';
import { __, sprintf } from '@wordpress/i18n';
import { Button, TextControl } from '@wordpress/components';
import PaymentMethodIcons from '../../ReusableComponents/PaymentMethodIcons';