Move checkbox control to checkout package (https://github.com/woocommerce/woocommerce-blocks/pull/5045)
* Move checkbox control to checkout package * Revert import change in editor
This commit is contained in:
parent
6592796ff0
commit
a76e00bd83
|
@ -21,8 +21,8 @@ import {
|
|||
import {
|
||||
PanelBody,
|
||||
ToggleControl,
|
||||
CheckboxControl,
|
||||
Notice,
|
||||
CheckboxControl,
|
||||
} from '@wordpress/components';
|
||||
import { CartCheckoutFeedbackPrompt } from '@woocommerce/editor-components/feedback-prompt';
|
||||
import { CHECKOUT_PAGE_ID } from '@woocommerce/block-settings';
|
||||
|
|
|
@ -9,7 +9,7 @@ import {
|
|||
useStoreEvents,
|
||||
} from '@woocommerce/base-context';
|
||||
import { getSetting } from '@woocommerce/settings';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
|
|
@ -10,7 +10,7 @@ import {
|
|||
useStoreEvents,
|
||||
useEditorContext,
|
||||
} from '@woocommerce/base-context';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
RichText,
|
||||
InspectorControls,
|
||||
} from '@wordpress/block-editor';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
import { PanelBody, ToggleControl, Notice } from '@wordpress/components';
|
||||
import { PRIVACY_URL, TERMS_URL } from '@woocommerce/block-settings';
|
||||
import { ADMIN_URL } from '@woocommerce/settings';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
import { __ } from '@wordpress/i18n';
|
||||
import classnames from 'classnames';
|
||||
import { useState, useEffect } from '@wordpress/element';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
import { useCheckoutSubmit } from '@woocommerce/base-context/hooks';
|
||||
import { withInstanceId } from '@wordpress/compose';
|
||||
import type { ValidationData } from '@woocommerce/type-defs/contexts';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import { useState } from '@wordpress/element';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
import Textarea from '@woocommerce/base-components/textarea';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import {
|
|||
useEditorContext,
|
||||
usePaymentMethodDataContext,
|
||||
} from '@woocommerce/base-context';
|
||||
import CheckboxControl from '@woocommerce/base-components/checkbox-control';
|
||||
import { CheckboxControl } from '@woocommerce/blocks-checkout';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,3 +6,4 @@ export { default as ExperimentalOrderShippingPackages } from './order-shipping-p
|
|||
export { default as Panel } from './panel';
|
||||
export { default as Button } from './button';
|
||||
export { default as Label } from './label';
|
||||
export { default as CheckboxControl } from './checkbox-control';
|
||||
|
|
Loading…
Reference in New Issue