Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
blocks
/
cart-checkout
/
checkout
/
form
:
order-notes-step.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { __ } from '@wordpress/i18n'; import { FormStep } from '@woocommerce/base-components/cart-checkout'; import { useCheckoutContext, useShippingDataContext, } from '@woocommerce/base-context'; /** * Internal dependencies */ import CheckoutOrderNotes from './order-notes'; const OrderNotesStep = () => { const { needsShipping } = useShippingDataContext(); const { isProcessing: checkoutIsProcessing, orderNotes, dispatchActions, } = useCheckoutContext(); const { setOrderNotes } = dispatchActions; return ( <FormStep id="order-notes" showStepNumber={ false } className="wc-block-checkout__order-notes" disabled={ checkoutIsProcessing } > <CheckoutOrderNotes disabled={ checkoutIsProcessing } onChange={ setOrderNotes } placeholder={ needsShipping ? __( 'Notes about your order, e.g. special notes for delivery.', 'woocommerce' ) : __( 'Notes about your order.', 'woocommerce' ) } value={ orderNotes } /> </FormStep> ); }; export default OrderNotesStep;