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

Move CartLineItemsTable from the Cart block directory to base-components #8644

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/js/base/components/cart-checkout/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down