mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🎨 Standardize imports, remove unneccesary consts
This commit is contained in:
parent
37beb591d5
commit
847bce3510
4 changed files with 9 additions and 14 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue