Move CartLineItemsTable from the Cart block directory to base-components (https://github.com/woocommerce/woocommerce-blocks/pull/8644)

This commit is contained in:
Albert Juhé Lluveras 2023-03-08 10:14:20 +01:00 committed by GitHub
parent 086cca602a
commit 6d821202ee
5 changed files with 3 additions and 9 deletions

View File

@ -1,4 +1,5 @@
export * from './address-form';
export { default as CartLineItemsTable } from './cart-line-items-table';
export { default as FormStep } from './form-step';
export { default as OrderSummary } from './order-summary';
export { default as PlaceOrderButton } from './place-order-button';

View File

@ -2,10 +2,7 @@
* External dependencies
*/
import { useStoreCart } from '@woocommerce/base-context/hooks';
/**
* Internal dependencies
*/
import CartLineItemsTable from '../../cart-line-items-table';
import { CartLineItemsTable } from '@woocommerce/base-components/cart-checkout';
const Block = ( { className }: { className: string } ): JSX.Element => {
const { cartItems, cartIsLoading } = useStoreCart();

View File

@ -2,13 +2,9 @@
* External dependencies
*/
import { useStoreCart } from '@woocommerce/base-context/hooks';
import { CartLineItemsTable } from '@woocommerce/base-components/cart-checkout';
import classNames from 'classnames';
/**
* Internal dependencies
*/
import CartLineItemsTable from '../../../../cart/cart-line-items-table';
type MiniCartContentsBlockProps = {
className: string;
};