2019-12-03 14:12:46 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2019-12-06 13:18:55 +00:00
|
|
|
import { Fragment } from '@wordpress/element';
|
2019-12-03 14:12:46 +00:00
|
|
|
import { Placeholder } from '@wordpress/components';
|
2019-12-06 13:18:55 +00:00
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import FormStep from '@woocommerce/base-components/checkout/form-step';
|
|
|
|
import CheckoutForm from '@woocommerce/base-components/checkout/form';
|
2019-12-03 14:12:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component displaying an attribute filter.
|
|
|
|
*/
|
|
|
|
const Block = () => {
|
|
|
|
return (
|
2019-12-06 13:18:55 +00:00
|
|
|
<CheckoutForm>
|
|
|
|
<FormStep
|
|
|
|
id="billing-fields"
|
|
|
|
className="wc-blocks-checkout__billing-fields"
|
|
|
|
title={ __(
|
|
|
|
'Contact information',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
description={ __(
|
|
|
|
"We'll use this email to send you details and updates about your order.",
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
stepNumber={ 1 }
|
|
|
|
stepHeadingContent={ () => (
|
|
|
|
<Fragment>
|
|
|
|
{ __(
|
|
|
|
'Already have an account? ',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
<a href="/wp-login.php">
|
|
|
|
{ __( 'Log in.', 'woo-gutenberg-products-block' ) }
|
|
|
|
</a>
|
|
|
|
</Fragment>
|
|
|
|
) }
|
|
|
|
>
|
|
|
|
<Placeholder>A checkout step, coming soon near you</Placeholder>
|
|
|
|
</FormStep>
|
|
|
|
<FormStep
|
|
|
|
id="shipping-fields"
|
|
|
|
className="wc-blocks-checkout__shipping-fields"
|
|
|
|
title={ __(
|
|
|
|
'Shipping address',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
description={ __(
|
|
|
|
'Enter the physical address where you want us to deliver your order.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
stepNumber={ 2 }
|
|
|
|
>
|
|
|
|
<Placeholder>A checkout step, coming soon near you</Placeholder>
|
|
|
|
</FormStep>
|
|
|
|
<FormStep
|
|
|
|
id="shipping-methods"
|
|
|
|
className="wc-blocks-checkout__shipping-methods"
|
|
|
|
title={ __(
|
|
|
|
'Shipping options',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
description={ __(
|
|
|
|
'Select your shipping method below.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
stepNumber={ 3 }
|
|
|
|
>
|
|
|
|
<Placeholder>A checkout step, coming soon near you</Placeholder>
|
|
|
|
</FormStep>
|
|
|
|
<FormStep
|
|
|
|
id="payment-fields"
|
|
|
|
className="wc-blocks-checkout__payment-fields"
|
|
|
|
title={ __( 'Payment method', 'woo-gutenberg-products-block' ) }
|
|
|
|
description={ __(
|
|
|
|
'Select a payment method below.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
) }
|
|
|
|
stepNumber={ 4 }
|
|
|
|
>
|
|
|
|
<Placeholder>A checkout step, coming soon near you</Placeholder>
|
|
|
|
</FormStep>
|
|
|
|
</CheckoutForm>
|
2019-12-03 14:12:46 +00:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Block;
|