Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update imports of Checkbox Control
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed Nov 8, 2023
1 parent dd6cbd7 commit c8b939f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { useEditorContext } from '@woocommerce/base-context';
import { CheckboxControl } from '@woocommerce/blocks-checkout';
import { CheckboxControl } from '@woocommerce/blocks-components';
import { useSelect, useDispatch } from '@wordpress/data';
import { CHECKOUT_STORE_KEY, PAYMENT_STORE_KEY } from '@woocommerce/block-data';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
RichText,
InspectorControls,
} from '@wordpress/block-editor';
import { CheckboxControl } from '@woocommerce/blocks-checkout';
import { CheckboxControl } from '@woocommerce/blocks-components';
import {
PanelBody,
ToggleControl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { __ } from '@wordpress/i18n';
import classnames from 'classnames';
import { useState, useEffect } from '@wordpress/element';
import { CheckboxControl } from '@woocommerce/blocks-checkout';
import { CheckboxControl } from '@woocommerce/blocks-components';
import { useCheckoutSubmit } from '@woocommerce/base-context/hooks';
import { withInstanceId } from '@wordpress/compose';
import { useDispatch, useSelect } from '@wordpress/data';
Expand Down
3 changes: 1 addition & 2 deletions assets/js/blocks/checkout/order-notes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { useState } from '@wordpress/element';
import { CheckboxControl } from '@woocommerce/blocks-checkout';
import { Textarea } from '@woocommerce/blocks-components';
import { CheckboxControl, Textarea } from '@woocommerce/blocks-components';

interface CheckoutOrderNotesProps {
disabled: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/components/checkbox-control/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { CheckboxControl } from '../../../../components/checkbox-control';
export { CheckboxControl } from '../../../components/checkbox-control';
2 changes: 1 addition & 1 deletion packages/checkout/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export { default as Panel } from './panel';
export { default as Button } from './button';
export { default as Label } from './label';
export { default as StoreNoticesContainer } from './store-notices-container';
export { default as CheckboxControl } from './checkbox-control';
export { CheckboxControl } from './checkbox-control';
export {
default as ValidatedTextInput,
ValidatedTextInputHandle,
Expand Down
3 changes: 1 addition & 2 deletions packages/components/checkbox-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import { __, _n, sprintf } from '@wordpress/i18n';
import { Fragment, useMemo, useState } from '@wordpress/element';
import classNames from 'classnames';
import { CheckboxControl } from '@woocommerce/blocks-checkout';

/**
* Internal dependencies
*/
import './style.scss';

import { CheckboxControl } from '../checkbox-control';
interface CheckboxListOptions {
label: React.ReactNode;
value: string;
Expand Down
1 change: 1 addition & 0 deletions packages/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as CheckboxControl } from './checkbox-control';
export { default as CheckboxList } from './checkbox-list';
export { Chip, RemovableChip } from './chip';
export { default as FormStep } from './form-step';
Expand Down

0 comments on commit c8b939f

Please sign in to comment.