* Move checkbox control to checkout package

* Revert import change in editor
This commit is contained in:
Mike Jolley 2021-11-09 16:47:46 +00:00 committed by GitHub
parent 6592796ff0
commit a76e00bd83
11 changed files with 8 additions and 7 deletions

View File

@ -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';

View File

@ -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

View File

@ -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

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';
/**

View File

@ -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';