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

Commit

Permalink
Move CartLineItemsTable from the Cart block directory to base-compone…
Browse files Browse the repository at this point in the history
…nts (#8644)
  • Loading branch information
Aljullu authored Mar 8, 2023
1 parent 9a7d052 commit d930e77
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
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

0 comments on commit d930e77

Please sign in to comment.